function health_admin_dashboard_rows in Health Status 7
Gets the admin dashboard rows for a particular set of results.
2 calls to health_admin_dashboard_rows()
- 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.
File
- ./
health.admin.inc, line 110 - Contains admin forms.
Code
function health_admin_dashboard_rows($monitors, $results) {
$rows = array();
foreach ($monitors as $key => $m) {
$status = $results[$key]['status'];
$status_icon_path = url(drupal_get_path('module', 'health') . '/css/status-icon-' . $status, array(
'absolute' => TRUE,
));
$rows[] = array(
'class' => array(
'health-status-' . $status,
),
'data' => array(
array(
'data' => '<img alt="' . $status . '" title="' . $status . '" width=30 src="' . $status_icon_path . '.png"/>',
'width' => 30,
),
$results[$key]['message'],
$m['name'],
$m['description'],
),
);
}
return $rows;
}