You are here

function theme_devel_querylog in Devel 6

Same name and namespace in other branches
  1. 7 devel.module \theme_devel_querylog()
1 theme call to theme_devel_querylog()
devel_query_table in ./devel.module
Adds a table at the bottom of the page cataloguing data on all the database queries that were made to generate the page.

File

./devel.module, line 1751

Code

function theme_devel_querylog($header = array(), $rows = array()) {
  $output = '';
  if (!empty($header)) {
    $output .= "<div class='devel-querylog devel-querylog-header clear-block'>";
    $output .= theme('devel_querylog_row', $header);
    $output .= "</div>";
  }
  if (!empty($rows)) {
    $i = 0;
    foreach ($rows as $row) {
      $i++;
      $zebra = $i % 2 == 0 ? 'even' : 'odd';
      $output .= "<div class='devel-querylog devel-querylog-{$zebra} clear-block'>";
      $output .= theme('devel_querylog_row', $row);
      $output .= "</div>";
    }
  }
  return $output;
}