You are here

function profanity_form_user_register_form_alter in Profanity 7

Implements hook_form_FORM_ID_alter().

File

./profanity.module, line 556
Main {profanity} file.

Code

function profanity_form_user_register_form_alter(&$form, $form_state, $form_id) {
  if (!variable_get('profanity_protect_user_reg', 0)) {
    return;
  }
  $form['#validate'][] = 'profanity_user_register_validate';
}