You are here

function spambot_form_user_register_form_alter in Spambot 7

Same name and namespace in other branches
  1. 8 spambot.module \spambot_form_user_register_form_alter()

Implements hook_form_FORM_ID_alter().

File

./spambot.module, line 76
Main module file.

Code

function spambot_form_user_register_form_alter(&$form, &$form_state) {
  if (variable_get('spambot_user_register_protect', TRUE)) {
    spambot_add_form_protection($form, array(
      'mail' => 'mail',
      'name' => 'name',
      'ip' => TRUE,
    ));
  }
}