You are here

function spamicide_admin_adform_form_validate in Spamicide 7

Implements hook_form_validate(). Enter description here ...

_state

Parameters

unknown_type $form:

File

./spamicide.module, line 292
This module provides yet another tool to eliminate spam.

Code

function spamicide_admin_adform_form_validate($form, &$form_state) {
  if (preg_match_all('[\\W]', $form_state['values']['spamicide_form_field'], $str)) {
    form_set_error('spamicide_form][spamicide_form_field', t("Only AlphaNumeric characters or the underscore please"));
  }
}