function _spam_content_comment_cid in Spam 6
Cache the comment id to be sure it's available when we need it.
2 calls to _spam_content_comment_cid()
- comment_spamapi in content/
spam_content_comment.inc - Spam module _spamapi() hook.
- spam_comment in content/
spam_content_comment.inc - Drupal _comment() hook.
File
- content/
spam_content_comment.inc, line 54 - Include file for integration with comments.
Code
function _spam_content_comment_cid($id = NULL) {
static $cid = 0;
if (isset($id) && is_numeric($id)) {
$cid = $id;
}
return $cid;
}