function antispam_content_is_spam in AntiSpam 6
Same name and namespace in other branches
- 7 antispam.module \antispam_content_is_spam()
Check if specified content is marked as spam.
Parameters
string Content type; can be either 'node' or 'comment'.:
integer Content ID; can be either a nid or a cid.:
Return value
boolean TRUE if content is marked as spam; FALSE otherwise.
3 calls to antispam_content_is_spam()
- antispam_callback_set_spam_status in ./
antispam.module - Menu callback; mark/unmark content as spam.
- antispam_confirm_multiple_operation_submit in ./
antispam.admin.inc - confirm_form callback; perform the actual operation against selected content.
- antispam_link in ./
antispam.module - Implementation of hook_link().
File
- ./
antispam.module, line 1162
Code
function antispam_content_is_spam($content_type, $content_id) {
return db_result(db_query('SELECT 1 FROM {antispam_spam_marks} WHERE content_type = \'%s\' AND content_id = %d', $content_type, $content_id));
}