function captcha_point_admin_form_validate in CAPTCHA 7
Same name and namespace in other branches
- 5.3 captcha.module \captcha_point_admin_form_validate()
- 6.2 captcha.admin.inc \captcha_point_admin_form_validate()
- 6 captcha.admin.inc \captcha_point_admin_form_validate()
Validation function for captcha_point_admin_form.
File
- ./
captcha.admin.inc, line 496 - Functionality and helper functions for CAPTCHA administration.
Code
function captcha_point_admin_form_validate($form, $form_state) {
if (!preg_match('/^[a-z0-9_]+$/', $form_state['values']['captcha_point_form_id'])) {
form_set_error('captcha_point_form_id', t('Illegal form_id'));
}
}