function foo_captcha_process in CAPTCHA Pack 6
Same name and namespace in other branches
- 8 foo_captcha/foo_captcha.module \foo_captcha_process()
- 7 foo_captcha/foo_captcha.module \foo_captcha_process()
Process the response to the foo CAPTCHA before validation.
1 string reference to 'foo_captcha_process'
- foo_captcha_captcha in foo_captcha/
foo_captcha.module - Implementation of hook_captcha().
File
- foo_captcha/
foo_captcha.module, line 68
Code
function foo_captcha_process($element, $edit, &$form_state, $complete_form) {
if (variable_get('foo_captcha_ignore_spaces', FALSE)) {
$element['#value'] = preg_replace('/\\s*/', '', $element['#value']);
}
return $element;
}