You are here

function nagios_invoke_all in Nagios Monitoring 5

Same name and namespace in other branches
  1. 8 nagios.module \nagios_invoke_all()
  2. 6 nagios.module \nagios_invoke_all()
  3. 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 201

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;
}