You are here

function captcha_admin_settings_validate in CAPTCHA 6.2

Same name and namespace in other branches
  1. 7 captcha.admin.inc \captcha_admin_settings_validate()

Validation handler for captcha_admin_settings form.

File

./captcha.admin.inc, line 265
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'));
  }
}