You are here

function theme_devel_querylog_row in Devel 6

Same name and namespace in other branches
  1. 7 devel.module \theme_devel_querylog_row()
1 theme call to theme_devel_querylog_row()
theme_devel_querylog in ./devel.module

File

./devel.module, line 1722

Code

function theme_devel_querylog_row($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;
}