theme_watchdog_event

Versions
4.7
theme_watchdog_event($header, $data)

Code

modules/watchdog.module, line 173

<?php
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;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.