You are here

function captcha_after_form_submit in CAPTCHA After 7

Same name and namespace in other branches
  1. 6 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.
  flood_clear_event('captcha_after_' . $form_id);

  // Register correct form submission.
  flood_register_event($form_id);
}