You are here

function spambot_form_user_register_form_alter in Spambot 8

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

Implements hook_form_FORM_ID_alter().

File

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

Code

function spambot_form_user_register_form_alter(&$form, &$form_state) {
  if (\Drupal::config('spambot.settings')
    ->get('spambot_user_register_protect')) {
    spambot_add_form_protection($form, [
      'mail' => 'mail',
      'name' => 'name',
      'ip' => TRUE,
    ]);
  }
}