how to stop a view from executing within a views hook
this worked for me, i unset all the results and the view disappeared 

foreach ($view-&gt;result as $key =&gt; $value) {
    unset ($view-&gt;result[$key]); // delete a row

  }