function theme_prod_check_dbstatus in Production check & Production monitor 7
Same name and namespace in other branches
- 6 includes/prod_check.theme.inc \theme_prod_check_dbstatus()
Theme database status page.
Parameters
$variables: An associative array containing:
- title: title string to display.
- status: string with status summary.
- details: associative array of associative arrays containing detailed status info.
1 theme call to theme_prod_check_dbstatus()
- prod_check_dbstatus in includes/
prod_check.admin.inc - Database status page.
File
- includes/
prod_check.theme.inc, line 67
Code
function theme_prod_check_dbstatus($variables) {
$title = $variables['title'];
$status = $variables['status'];
$details = $variables['details'];
$output = '';
// DB system and version.
$output .= '<h2>' . $title . '</h2>';
// Basic status info.
$output .= '<div>' . $status . '</div><p> </p>';
// Add detailed statuses.
foreach ($details as $type) {
if ($type) {
$caption = '<h2>' . $type['title'] . '</h2>';
$output .= theme('table', array(
'header' => $type['header'],
'rows' => $type['rows'],
'caption' => $caption,
));
}
}
return $output;
}