You are here

function captcha_point_admin_form_validate in CAPTCHA 6

Same name and namespace in other branches
  1. 5.3 captcha.module \captcha_point_admin_form_validate()
  2. 6.2 captcha.admin.inc \captcha_point_admin_form_validate()
  3. 7 captcha.admin.inc \captcha_point_admin_form_validate()

validation function for captcha_point_admin_form

File

./captcha.admin.inc, line 234

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'));
  }
}