You are here

function theme_perfmon_reviewed in Performance monitor 7

Theme main report.

1 theme call to theme_perfmon_reviewed()
perfmon_reviewed in ./perfmon.pages.inc
Main page output.

File

./perfmon.pages.inc, line 182
@todo: Enter file description here. @todo: Add hook_help for all tests.

Code

function theme_perfmon_reviewed($variables) {
  $output = '<h3>' . $variables['header'] . '</h3>';
  $output .= '<p>' . $variables['description'] . '</p>';
  $output .= '<table class="system-status-report">';
  if (!empty($variables['items'])) {
    foreach ($variables['items'] as $item) {
      if ($item['bold']) {
        $output .= '<tr class="' . $item['class'] . '" style="font-size:medium; font-weight:bold;">';
      }
      else {
        $output .= '<tr class="' . $item['class'] . '">';
      }
      $output .= '<td class="status-icon"><div title="' . $item['title'] . '"><span class="element-invisible">' . $item['title'] . '</span></div></td>';
      $output .= '<td>' . $item['message'] . '</td>';
      $output .= '<td>' . $item['value'] . '</td>';
      $output .= '</tr>';
    }
  }
  $output .= '</table>';
  return $output;
}