function spam_score_is_spam in Spam 6
Same name and namespace in other branches
- 5.3 spam.module \spam_score_is_spam()
3 calls to spam_score_is_spam()
- comment_spamapi_form_alter in content/
spam_content_comment.inc - Form alter gets its 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.)
- spam_comment in content/
spam_content_comment.inc - Drupal _comment() hook.
- spam_nodeapi in content/
spam_content_node.inc - Drupal _nodeapi() hook.
File
- ./
spam.module, line 2119 - Spam module, v3 Copyright(c) 2006-2008 Jeremy Andrews <jeremy@tag1consulting.com>. All rights reserved.
Code
function spam_score_is_spam($score) {
if ($score >= variable_get('spam_threshold', SPAM_DEFAULT_THRESHOLD)) {
return TRUE;
}
else {
return FALSE;
}
}