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:
Thomas Gelf 2015-02-02 17:48:40 +01:00
commit ac7ffc757f
1 changed files with 13 additions and 0 deletions

View File

@ -51,6 +51,19 @@ class Monitoring_HostController extends MonitoredObjectController
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
*/