function _is_spam in Spam 5
Compare the passed in probability to the configured spam threshold.
Parameters
$probability 1-99% chance of being spam.:
Return value
0 = not spam, 1 = spam
1 call to _is_spam()
- spam_default_actions in ./
spam.module - The default callback, performs all actions on spam/not spam content.
File
- ./
spam.module, line 1534
Code
function _is_spam($probability) {
if ($probability >= variable_get('spam_threshold', 80)) {
return 1;
}
return 0;
}