function _spam_content_node_nid in Spam 6
Cache the node id to be sure it's available when we need it.
1 call to _spam_content_node_nid()
- node_spamapi in content/
spam_content_node.inc - Spam module _spamapi() hook.
File
- content/
spam_content_node.inc, line 47 - Include file for integration with the node system.
Code
function _spam_content_node_nid($id = NULL) {
static $nid = 0;
if (isset($id) && is_numeric($id)) {
$nid = $id;
}
return $nid;
}