You are here

function spam_score_is_spam in Spam 5.3

Same name and namespace in other branches
  1. 6 spam.module \spam_score_is_spam()
2 calls to spam_score_is_spam()
comment_comment in modules/spam_comment.inc
Drupal _comment() hook.
comment_spamapi_form_alter in modules/spam_comment.inc
Form alter gets it's own function so we can reference &$form without causing errors in PHP4 installations. (If we use spamapi, we have to set a default, which PHP4 doesn't support.)

File

./spam.module, line 1999

Code

function spam_score_is_spam($score) {
  if ($score >= variable_get('spam_threshold', SPAM_DEFAULT_THRESHOLD)) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}