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