function notify_form_user_register_form_alter in Notify 2.0.x
Same name and namespace in other branches
- 8 notify.module \notify_form_user_register_form_alter()
- 7 notify.module \notify_form_user_register_form_alter()
- 1.0.x notify.module \notify_form_user_register_form_alter()
Implements hook_form_FORM_ID_alter().
File
- ./
notify.module, line 108 - Hooks for Notify module.
Code
function notify_form_user_register_form_alter(&$form, &$form_state, $form_id) {
$config = \Drupal::config('notify.settings');
$period = $config
->get('notify_period');
if ($period > 0) {
$form += _notify_user_reg_fields();
}
}