You are here

function theme_security_review_reviewed in Security Review 6

Same name and namespace in other branches
  1. 7 security_review.pages.inc \theme_security_review_reviewed()
1 theme call to theme_security_review_reviewed()
security_review_reviewed in ./security_review.module

File

./security_review.module, line 195
Site security review and reporting Drupal module.

Code

function theme_security_review_reviewed($items = array(), $header = '', $desc = '') {
  drupal_add_js(drupal_get_path('module', 'security_review') . '/security_review.js', 'module', 'footer');
  $output = '<h3>' . $header . '</h3>';
  $output .= '<p>' . $desc . '</p>';
  $output .= '<table class="system-status-report">';
  foreach ($items as $item) {
    $output .= '<tr class="' . $item['class'] . '"><th>' . $item['message'] . '</th>';
    $output .= '<td>' . $item['help_link'] . '</td>';
    $output .= '<td>' . $item['toggle_link'] . '</td>';
    $output .= '</tr>';
  }
  $output .= '</table>';
  return $output;
}