You are here

function system_form_user_register_form_alter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/system.module \system_form_user_register_form_alter()

Implements hook_form_FORM_ID_alter().

File

core/modules/system/system.module, line 736
Configuration system that lets administrators modify the workings of the site.

Code

function system_form_user_register_form_alter(&$form, FormStateInterface $form_state) {
  $config = \Drupal::config('system.date');
  if ($config
    ->get('timezone.user.configurable') && $config
    ->get('timezone.user.default') == DRUPAL_USER_TIMEZONE_SELECT) {
    system_user_timezone($form, $form_state);
  }
}