You are here

function _spam_node_nid in Spam 5.3

Cache the node id to be sure it's available when we need it.

1 call to _spam_node_nid()
node_spamapi in modules/spam_node.inc
Spam module _spamapi() hook.

File

modules/spam_node.inc, line 23

Code

function _spam_node_nid($id = NULL) {
  static $nid = 0;
  if (isset($id) && is_numeric($id)) {
    $nid = $id;
  }
  return $nid;
}