function captcha_after_form_submit in CAPTCHA After 6
Same name and namespace in other branches
- 7 captcha_after.module \captcha_after_form_submit()
Form is submited.
1 string reference to 'captcha_after_form_submit'
- captcha_after_form_alter in ./
captcha_after.module - Implementation of hook_form_alter().
File
- ./
captcha_after.module, line 80 - Show CAPTCHA protection on selected forms after specified number of unsuccessful form submit attempts has been made.
Code
function captcha_after_form_submit($form, &$form_state) {
$form_id = $form['form_id']['#value'];
// We are in submit - reset flood submit threshold counter.
captcha_after_db_flood_delete_events('captcha_after_' . $form_id);
// Register correct form submission.
flood_register_event($form_id);
}