You are here

function css_captcha_settings_form_validate in CAPTCHA Pack 6

Same name and namespace in other branches
  1. 5 css_captcha/css_captcha.module \css_captcha_settings_form_validate()
  2. 7 css_captcha/css_captcha.admin.inc \css_captcha_settings_form_validate()

Validation function

1 string reference to 'css_captcha_settings_form_validate'
css_captcha_settings_form in css_captcha/css_captcha.admin.inc
Function for the settings form

File

css_captcha/css_captcha.admin.inc, line 26

Code

function css_captcha_settings_form_validate($form, &$form_state) {
  if (preg_match('/\\s/', $form_state['values']['css_captcha_allowed_characters'])) {
    form_set_error('css_captcha_allowed_characters', t('The list of characters to use should not contain spaces.'));
  }
}