function spam_bypass_filters in Spam 6
Helper function to check whether the filter or their actions should be bypassed.
6 calls to spam_bypass_filters()
- spam_comment in content/
spam_content_comment.inc - Drupal _comment() hook.
- spam_content_filter in ./
spam.module - API call to determine the likeliness that a given piece of content is spam, returning a rating from 1% likelihood to 99% likelihood. It is unlikely that you want to call this function directly.
- spam_content_insert in ./
spam.module - This function is called when new content is first posted to your website.
- spam_content_update in ./
spam.module - This function is called when content on your website is updated.
- spam_nodeapi in content/
spam_content_node.inc - Drupal _nodeapi() hook.
File
- ./
spam.module, line 2205 - Spam module, v3 Copyright(c) 2006-2008 Jeremy Andrews <jeremy@tag1consulting.com>. All rights reserved.
Code
function spam_bypass_filters() {
if (isset($_SESSION['spam_bypass_spam_filter']) && $_SESSION['spam_bypass_spam_filter']) {
unset($_SESSION['spam_bypass_spam_filter']);
return TRUE;
}
return FALSE;
}