function word_list_captcha_settings_form_validate in CAPTCHA Pack 5
Same name and namespace in other branches
- 6 text_captcha/word_list_captcha/word_list_captcha.admin.inc \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
File
- text_captcha/
word_list_captcha/ word_list_captcha.module, line 70
Code
function word_list_captcha_settings_form_validate($form_id, $form_values) {
if ($form_id == 'word_list_captcha_settings_form') {
// check the number of words in the pools
$list_size = (int) $form_values['word_list_captcha_list_size'];
_text_captcha_word_pool_validate('word_list_captcha_word_pool_1', $form_values, $list_size, 0, '');
_text_captcha_word_pool_validate('word_list_captcha_word_pool_2', $form_values, $list_size, 0, '');
}
}