You are here

function foo_captcha_process in CAPTCHA Pack 7

Same name and namespace in other branches
  1. 8 foo_captcha/foo_captcha.module \foo_captcha_process()
  2. 6 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
Implements hook_captcha().

File

foo_captcha/foo_captcha.module, line 55

Code

function foo_captcha_process($element, $edit) {
  if (variable_get('foo_captcha_ignore_spaces', FALSE)) {
    $element['#value'] = preg_replace('/\\s*/', '', $element['#value']);
  }
  return $element;
}