You are here

function spambot_form_alter in Spambot 6.3

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

Implementation of hook_form_alter()

File

./spambot.module, line 45

Code

function spambot_form_alter(&$form, $form_state, $form_id) {
  if ($form_id == 'user_register' && variable_get('spambot_user_register_protect', TRUE) && !user_access('administer users')) {
    $form['#validate'][] = 'spambot_user_register_validate';
  }
}