function _viewfield_nodestack_push in Viewfield 5
Function for adding a node ID to the global stack of node IDs. This prevents us from recursively building a node, with a view, with the node, with the view...
1 call to _viewfield_nodestack_push()
- viewfield_field_formatter in ./
viewfield.module - Implementation of hook_field_formatter().
File
- ./
viewfield.module, line 447 - Defines a field type for referencing a view from a node
Code
function _viewfield_nodestack_push($nid) {
global $_viewfield_stack;
if (!isset($_viewfield_stack)) {
$_viewfield_stack = array();
}
$_viewfield_stack[] = $nid;
}