How to filter a view with another view?
For those who need to implement this as well. I solved this by the following code. However in this code $tid_to_remove is not a view but generated on the view itself. 

function MODULENAME_views_post_execute(&amp;$view){

  switch ($view-&gt;name){
  case "VIEW_MACHINE_NAAM";

    GLOBAL $user;

    // Go through the view and build a list of items which should be removed
    $data = $view-&gt;result;
    $tid_to_remove = array();
    foreach ($data as $row =&gt; $rowinfo) {
      if ($rowinfo-&gt;users_node_uid == $user-&gt;uid ){     // if the current row belongs to the current user
        $tid_to_remove[] = $rowinfo-&gt;tid;  // added to the array
      }
    }

    // Optimize the array to unique values
    $tid_to_remove = array_unique($tid_to_remove);

    // Go through the view again en remove all values which are stored in $tid_to_remove
    $data = $view-&gt;result;
    foreach ($data as $row =&gt; $rowinfo) {
      if (in_array($rowinfo-&gt;tid,$tid_to_remove)){
        unset ($data[$row]);
      }
    }

    // place the values back into the view
    $view-&gt;result = $data;

  break;
  }
}