Hiding a Tab when the View from Field View is Empty I'm using Views Field to show a view in a Horizontal Tab in a content type. My trouble is that when the view returns empty based on filter criteria, the tab is not hidden.

The view itself has 4 fields from the content plus some custom text.

I tried going through some of the "Not Empty" tips for hding blocks when views are empty, but It didn't work and it was all a shot in the dark anyway.
Try with this 

$node = node_load($argument);
if ((isset($node-&gt;field_fotos) || 
     isset($node-&gt;field_summary)) &amp;&amp;
     (is_array($node-&gt;field_fotos) &amp;&amp;
     count($node-&gt;field_fotos) &gt; 0) ||
     (is_array($node-&gt;field_summary) &amp;&amp; 
     count($node-&gt;field_summary) &gt; 0)) {
  return TRUE;
}
else {
  return FALSE;
}