You are here

function botcha_point_admin_form_validate in BOTCHA Spam Prevention 7

Same name and namespace in other branches
  1. 6 botcha.pages.inc \botcha_point_admin_form_validate()

validation function for botcha_point_admin_form

File

./botcha.pages.inc, line 364
Implementation of botcha administration forms.

Code

function botcha_point_admin_form_validate($form, $form_state) {
  if (!preg_match('/^[a-z0-9_]+$/', $form_state['values']['botcha_point_form_id'])) {
    form_set_error('botcha_point_form_id', t('Illegal form_id'));
  }
}