function nodereference_count_delayed_nids in Nodereference Count 7
Statically cache any nids that should have their count update delayed.
Parameters
$nid: A nid that should be added to the cache.
Return value
An array of nids.
2 calls to nodereference_count_delayed_nids()
- nodereference_count_exit in ./
nodereference_count.module - Implements hook_exit().
- nodereference_count_references_update in ./
nodereference_count.module - Identify counted node references on a node and trigger an update of the referenced nodes.
File
- ./
nodereference_count.module, line 414 - Defines a field type for counting the references to a node.
Code
function nodereference_count_delayed_nids($nid = NULL) {
$nids =& drupal_static(__FUNCTION__, array());
if (!is_null($nid) && !isset($nids[$nid])) {
$nids[$nid] = $nid;
}
return $nids;
}