function captcha_admin_settings_validate in CAPTCHA 7
Same name and namespace in other branches
- 6.2 captcha.admin.inc \captcha_admin_settings_validate()
Validation handler for captcha_admin_settings form.
File
- ./
captcha.admin.inc, line 301 - Functionality and helper functions for CAPTCHA administration.
Code
function captcha_admin_settings_validate($form, $form_state) {
$form_id = $form_state['values']['captcha_form_id_overview']['captcha_new_captcha_point']['form_id'];
if (!preg_match('/^[a-z0-9_]*$/', $form_id)) {
form_set_error('captcha_form_id_overview][captcha_new_captcha_point][form_id', t('Illegal form_id'));
}
}