function captcha_after_db_flood_delete_events in CAPTCHA After 6
Delete flood events for a given name and user hostname.
Parameters
string $name: Registerd flood name.
1 call to captcha_after_db_flood_delete_events()
- captcha_after_form_submit in ./
captcha_after.module - Form is submited.
File
- ./
captcha_after.module, line 265 - Show CAPTCHA protection on selected forms after specified number of unsuccessful form submit attempts has been made.
Code
function captcha_after_db_flood_delete_events($name) {
db_query("DELETE FROM {flood} WHERE event = '%s' AND hostname = '%s'", $name, ip_address());
}