function ascii_art_captcha_settings_form_validate in CAPTCHA Pack 5
Same name and namespace in other branches
- 6 ascii_art_captcha/ascii_art_captcha.admin.inc \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
File
- ascii_art_captcha/
ascii_art_captcha.module, line 97
Code
function ascii_art_captcha_settings_form_validate($form_id, $form_values) {
if ($form_id = 'ascii_art_captcha_settings_form') {
if ($form_values['ascii_art_captcha_allowed_characters'][0]) {
form_set_error('ascii_art_captcha_allowed_characters', t('You should select at least one type of characters to use.'));
}
}
}