function theme_devel_querylog_row in Devel 7
Same name and namespace in other branches
- 6 devel.module \theme_devel_querylog_row()
Returns HTML for a Devel querylog row.
Parameters
array $variables: An associative array containing:
- row: An array of cells in which each cell is either a string or an
associative array containing:
- data: The data to render.
- Any attributes to be applied to the cell.
1 theme call to theme_devel_querylog_row()
- theme_devel_querylog in ./
devel.module - Returns HTML for the Devel querylog.
File
- ./
devel.module, line 1764 - This module holds functions useful for Drupal development.
Code
function theme_devel_querylog_row($variables) {
$row = $variables['row'];
$i = 0;
$output = '';
foreach ($row as $cell) {
$i++;
if (is_array($cell)) {
$data = !empty($cell['data']) ? $cell['data'] : '';
unset($cell['data']);
$attr = $cell;
}
else {
$data = $cell;
$attr = array();
}
if (!empty($attr['class'])) {
$attr['class'] .= " cell cell-{$i}";
}
else {
$attr['class'] = "cell cell-{$i}";
}
$attr = drupal_attributes($attr);
$output .= "<div {$attr}>{$data}</div>";
}
return $output;
}