function prod_check_status in Production check & Production monitor 6
Same name and namespace in other branches
- 7 includes/prod_check.admin.inc \prod_check_status()
Build status page.
1 string reference to 'prod_check_status'
- prod_check_menu in ./
prod_check.module - Implementation of hook_menu()
File
- includes/
prod_check.admin.inc, line 6
Code
function prod_check_status() {
drupal_set_title(t('Production check status'));
$output = '';
// Execute all functions per set as defined in the functions array in
// _prod_check_functions().
$functions = _prod_check_functions();
// Not needed here.
unset($functions['prod_mon']);
unset($functions['perf_data']);
foreach ($functions as $set => $data) {
$result = array();
foreach ($data['functions'] as $function => $title) {
$check = call_user_func($function);
if (is_array($check) && !empty($check)) {
$result = array_merge($result, $check);
}
}
$output .= '<h2>' . t($data['title']) . '</h2>' . "\n";
$output .= '<div class="description"><p><em>' . t($data['description']) . '</em></p></div>' . "\n";
$output .= theme('prod_check_status_report', $result);
}
return $output;
}