You are here

function theme_watchdog_event in Drupal 4

1 theme call to theme_watchdog_event()
watchdog_event in modules/watchdog.module
Menu callback; displays details about a log message.

File

modules/watchdog.module, line 173
System monitoring and logging for administrators.

Code

function theme_watchdog_event($header, $data) {
  $output = '';
  $output .= '<table class="watchdog-event">';
  $n = count($header);
  for ($i = 0; $i < $n; $i++) {
    $output .= '<tr class="' . ($i % 2 == 0 ? 'even' : 'odd') . '"><th>' . $header[$i] . '</th><td>' . $data[$i] . '</td></tr>';
  }
  $output .= '</table>';
  return $output;
}