You are here

function captcha_point_admin_form_validate in CAPTCHA 5.3

Same name and namespace in other branches
  1. 6.2 captcha.admin.inc \captcha_point_admin_form_validate()
  2. 6 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.module, line 384
This module enables basic CAPTCHA functionality: administrators can add a CAPTCHA to desired forms that users without the 'skip CAPTCHA' permission (typically anonymous visitors) have to solve.

Code

function captcha_point_admin_form_validate($form, $form_values) {
  if (!preg_match('/^[a-z0-9_]+$/', $form_values['captcha_point_form_id'])) {
    form_set_error('captcha_point_form_id', t('Illegal form_id'));
  }
}