You are here

function spam_filter_enabled in Spam 5.3

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

Determine if a given filter is enabled.

File

./spam.module, line 899

Code

function spam_filter_enabled($filter, $type, $content, $fields, $extra) {
  return db_result(db_query("SELECT status FROM {spam_filters} WHERE module = '%s'", $filter));
}