function health_get_monitors in Health Status 7
Gets monitors that have been registered.
Return value
array Monitors supplied by hooks.
3 calls to health_get_monitors()
- health_admin_dashboard_form in ./
health.admin.inc - Health dashboard with data from previous days.
- health_cron_email_send in ./
health.module - Sends a health status on cron run when necessary.
- health_get_data in ./
health.module - Gets all the health status data from modules that hook into it.
File
- ./
health.module, line 186 - Contains the basic hooks and function used by the Health system.
Code
function health_get_monitors() {
$monitors = module_invoke_all('health_monitors');
// Organize monitors by group.
$grouped = array();
foreach ($monitors as $key => $m) {
$grouped[$m['group']][$key] = $m;
}
drupal_alter('health_monitors', $grouped);
return $grouped;
}