function system_form_user_register_form_alter

Implements hook_form_FORM_ID_alter().

File

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

Code

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