function perfmon_mysql_reviewed in Performance monitor 7
Mysql settings page output.
1 call to perfmon_mysql_reviewed()
- perfmon_mysql_page in ./
perfmon.pages.inc - Mysql settings page.
File
- ./
perfmon.pages.inc, line 101 - @todo: Enter file description here. @todo: Add hook_help for all tests.
Code
function perfmon_mysql_reviewed($performance_variables) {
$items = array();
$header = t('MySQL Performance');
$desc = t("Here you can review the results from checks mysql status and variables.");
foreach ($performance_variables as $param_name => $param) {
$message = $param['message'];
$title = $param['title'];
$class = $param['class'];
$value = $param['display_value'];
$bold = FALSE;
$items[] = array(
'title' => $title,
'bold' => $bold,
'value' => $value,
'class' => $class,
'message' => $message,
);
}
$output = theme('perfmon_mysql_reviewed', array(
'items' => $items,
'header' => $header,
'description' => $desc,
));
return array(
'#markup' => $output,
);
}