function spam_filter_enabled in Spam 6
Same name and namespace in other branches
- 5.3 spam.module \spam_filter_enabled()
Determine if a given filter is enabled.
File
- ./
spam.module, line 876 - Spam module, v3 Copyright(c) 2006-2008 Jeremy Andrews <jeremy@tag1consulting.com>. All rights reserved.
Code
function spam_filter_enabled($filter, $type, $content, $fields, $extra) {
return db_result(db_query("SELECT status FROM {spam_filters} WHERE module = '%s'", $filter));
}