Closed (fixed)
Project:
Views exclude previous
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Sep 2012 at 23:55 UTC
Updated:
21 Mar 2013 at 18:50 UTC
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
Comment #1
kars-t commentedHi
I think we already do this in views_exclude_previous_views_post_execute() so I am closing this. Thanks any way for your contrib :)