You are here

function _spam_comment_cid in Spam 5.3

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

2 calls to _spam_comment_cid()
comment_comment in modules/spam_comment.inc
Drupal _comment() hook.
comment_spamapi in modules/spam_comment.inc
Spam module _spamapi() hook.

File

modules/spam_comment.inc, line 35

Code

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