function theme_views_maintenance_views_thead in Views Maintenance 7
Same name and namespace in other branches
- 6 theme/theme.inc \theme_views_maintenance_views_thead()
Returns HTML for primary views table thead tag.
Code was copied from theme_table().
Parameters
array $vars:
1 theme call to theme_views_maintenance_views_thead()
- template_preprocess_views_maintenance_views_table in theme/theme.inc 
- Prepares views info for output and includes required CSS/JS.
File
- theme/theme.inc, line 105 
- Preprocessing and theming functions for Views Maintenance.
Code
function theme_views_maintenance_views_thead($vars) {
  $ts = tablesort_init($vars['header']);
  $output = '<thead><tr>';
  foreach ($vars['header'] as $cell) {
    $cell = tablesort_header($cell, $vars['header'], $ts);
    $output .= _theme_table_cell($cell, TRUE);
  }
  $output .= "</tr></thead>\n";
  return $output;
}