I have just made a quick hack to this module to detect if a node is being used in a view. It only works on fields, and if you have a field 'nid' in your output (Can be excluded)

I find this module quite useful, so here is my small contribution.

function views_exclude_previous_views_post_render(&$view, &$output, &$cache){

  foreach ($view->result as $r){
    if(isset($r->nid))
      _views_exclude_previous('views', $r->nid);
  }

}

Comments

kars-t’s picture

Status: Active » Fixed

Hi

I think we already do this in views_exclude_previous_views_post_execute() so I am closing this. Thanks any way for your contrib :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.