Commit 64f160b6 authored by merlinofchaos's avatar merlinofchaos
Browse files

Allow block types to have table headers

parent 0b439f29
......@@ -232,7 +232,8 @@ function _views_view_build_fields(&$query, &$view) {
}
}
$plugins = _views_get_style_plugins();
if ($view->page && $plugins[$view->page_type]['needs_table_header']) { // table only
if (($view->page && $plugins[$view->page_type]['needs_table_header']) ||
($view->block && $plugins[$view->block_type]['needs_table_header'])) { // table only
$view->table_header = _views_construct_header($view, $fields);
$query->set_header($view->table_header);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment