function ascii_art_captcha_settings_form_validate in CAPTCHA Pack 6
Same name and namespace in other branches
- 5 ascii_art_captcha/ascii_art_captcha.module \ascii_art_captcha_settings_form_validate()
- 7 ascii_art_captcha/ascii_art_captcha.admin.inc \ascii_art_captcha_settings_form_validate()
Validation function for the settings
1 string reference to 'ascii_art_captcha_settings_form_validate'
- ascii_art_captcha_settings_form in ascii_art_captcha/
ascii_art_captcha.admin.inc - Function for the settings form
File
- ascii_art_captcha/
ascii_art_captcha.admin.inc, line 57 - Functionality and helper functions for ASCII ART CAPTCHA administration.
Code
function ascii_art_captcha_settings_form_validate($form, &$form_state) {
if (count(array_filter($form_state['values']['ascii_art_captcha_allowed_characters'])) < 1) {
form_set_error('ascii_art_captcha_allowed_characters', t('You should select at least one type of characters to use.'));
}
}