You are here

function spam_filter_content_type in Spam 5.3

Same name and namespace in other branches
  1. 6 spam.module \spam_filter_content_type()

Determine if we should be filtering a given content type.

3 calls to spam_filter_content_type()
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.

File

./spam.module, line 888

Code

function spam_filter_content_type($content, $type, $extra) {
  $filter = spam_invoke_module($type, 'filter_content_type', $content, $extra);
  if (!$filter) {
    spam_log(SPAM_DEBUG, 'spam_filter_content_type', t('not configured to scan this content type'), $type, $id);
  }
  return $filter;
}