function theme_devel_querylog in Devel 7
Same name and namespace in other branches
- 6 devel.module \theme_devel_querylog()
Returns HTML for the Devel querylog.
Parameters
array $variables: An associative array containing:
- header: An array suitable for rendering with devel_querylog_row.
- rows: An array of rows suitable for rendering with devel_querylog_row.
1 theme call to theme_devel_querylog()
- devel_query_table in ./
devel.module - Shows all the queries for the page.
File
- ./
devel.module, line 1804 - This module holds functions useful for Drupal development.
Code
function theme_devel_querylog($variables) {
$header = $variables['header'];
$rows = $variables['rows'];
$output = '';
if (!empty($header)) {
$output .= "<div class='devel-querylog devel-querylog-header clear-block'>";
$output .= theme('devel_querylog_row', array(
'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', array(
'row' => $row,
));
$output .= "</div>";
}
}
return $output;
}