function captcha_after_form_pre_render in CAPTCHA After 6
Same name and namespace in other branches
- 7 captcha_after.module \captcha_after_form_pre_render()
Form is in pre rendered state.
1 string reference to 'captcha_after_form_pre_render'
- captcha_after_form_alter in ./
captcha_after.module - Implementation of hook_form_alter().
File
- ./
captcha_after.module, line 93 - Show CAPTCHA protection on selected forms after specified number of unsuccessful form submit attempts has been made.
Code
function captcha_after_form_pre_render($form) {
// Test should we hide captcha widget.
if (!captcha_after_show_captcha($form['form_id']['#value']) && ($captcha =& captcha_after_get_captcha_element($form))) {
$captcha =& captcha_after_get_captcha_element($form);
$captcha['#access'] = FALSE;
}
return $form;
}