1.20.x system.module system_form_user_register_form_alter(&$form, &$form_state)

Implements hook_form_FORM_ID_alter().

File

modules/system/system.module, line 2446
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('user_configurable_timezones') && $config->get('user_default_timezone') == BACKDROP_USER_TIMEZONE_SELECT) {
    system_user_timezone($form, $form_state);
    return $form;
  }
}