function word_list_captcha_settings_form_validate in CAPTCHA Pack 6
Same name and namespace in other branches
- 5 text_captcha/word_list_captcha/word_list_captcha.module \word_list_captcha_settings_form_validate()
- 7 text_captcha/word_list_captcha/word_list_captcha.admin.inc \word_list_captcha_settings_form_validate()
Validation function for the settings form
1 string reference to 'word_list_captcha_settings_form_validate'
- word_list_captcha_settings_form in text_captcha/
word_list_captcha/ word_list_captcha.admin.inc - Function for the settings form
File
- text_captcha/
word_list_captcha/ word_list_captcha.admin.inc, line 40
Code
function word_list_captcha_settings_form_validate($form, &$form_state) {
// check the number of words in the pools
$list_size = (int) $form_state['values']['word_list_captcha_list_size'];
_text_captcha_word_pool_validate('word_list_captcha_word_pool_1', $form_state['values'], $list_size, 0, '');
_text_captcha_word_pool_validate('word_list_captcha_word_pool_2', $form_state['values'], $list_size, 0, '');
}