Merge branch 'feature/hostactions-hook-8208' of git.icinga.org:icingaweb2 into feature/hostactions-hook-8208
Manually merged diverged tab activation Conflicts: modules/monitoring/application/controllers/HostController.php
This commit is contained in:
commit
ac7ffc757f
|
@ -51,6 +51,19 @@ class Monitoring_HostController extends MonitoredObjectController
|
||||||
return $urls;
|
return $urls;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function getHostActions()
|
||||||
|
{
|
||||||
|
$urls = array();
|
||||||
|
|
||||||
|
foreach (Hook::all('Monitoring\\HostActions') as $hook) {
|
||||||
|
foreach ($hook->getActionsForHost($this->object) as $id => $url) {
|
||||||
|
$urls[$id] = $url;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $urls;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show a host
|
* Show a host
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue