You are here

function css_captcha_settings_form_validate in CAPTCHA Pack 7

Same name and namespace in other branches
  1. 5 css_captcha/css_captcha.module \css_captcha_settings_form_validate()
  2. 6 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 31
Functionality and helper functions for CSS CAPTCHA administration.

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.'));
  }
}