You are here

function spambot_form_alter in Spambot 6

Same name and namespace in other branches
  1. 6.3 spambot.module \spambot_form_alter()

Implementation of hook_form_alter().

File

./spambot.module, line 6

Code

function spambot_form_alter(&$form, &$form_state, $form_id) {
  if ($form_id == 'user_register' || $form_id == 'user_edit') {

    //     drupal_set_message("<pre>" . print_r($form['#validate'], TRUE). "</pre>");
    //     $form['#validate'] = array('spambot_username_validate');
    array_push($form['#validate'], 'spambot_username_validate');
  }
}