function nagios_invoke_all in Nagios Monitoring 6
Same name and namespace in other branches
- 8 nagios.module \nagios_invoke_all()
- 5 nagios.module \nagios_invoke_all()
- 7 nagios.module \nagios_invoke_all()
Custom invoke function
2 calls to nagios_invoke_all()
- nagios_settings in ./
nagios.module - Callback for the settings page
- nagios_status_page in ./
nagios.module - Callback for the nagios status page
File
- ./
nagios.module, line 312
Code
function nagios_invoke_all($hook = 'nagios') {
// This is a custom invoke function that returns a keyed array
$return = array();
$args = func_get_args();
foreach (module_implements($hook) as $module) {
$function = $module . '_' . $hook;
$result = call_user_func_array($function, $args);
$return[$module] = $result;
}
return $return;
}