You are here

function antispam_increase_counter in AntiSpam 7

Same name and namespace in other branches
  1. 6 antispam.module \antispam_increase_counter()

Increase today's counter value for the specified counter type by 1.

4 calls to antispam_increase_counter()
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_comment_save in ./antispam.module
Called from hook_comment_insert() and hook_comment_update().
_antispam_node_save in ./antispam.module
Called from hook_node_insert() and hook_node_update()

File

./antispam.module, line 337
Primary hook implementations for the Antispam module.

Code

function antispam_increase_counter($counter_type) {
  antispam_set_counter($counter_type, antispam_get_counter($counter_type) + 1);
}