How to completely hide a table header in views? In views when you use the table layout and don't select labels it still creates an empty header, for example:

&lt;th class="views-field views-field-field-address-1"&gt;&lt;/th&gt; 


I can hide it with CSS. What would I have to do to access the render array and unset the element before the HTML is generated?

Is there any other way to remove the &lt;th&gt; tag?
Implement hook_preprocess_views_view_table(&amp;$vars) in theme or custom module and set $vars['header'] to empty array. Template completely ignores thead when header variable is empty. For example:

function MY_THEME_preprocess_views_view_table(&amp;$vars) {
  if ($vars['view']-&gt;name == "my_view") {
    $vars['header'] = array();
  }
}