1 system.module | system_form_user_register_form_alter(&$form, &$form_state) |
Implements hook_form_FORM_ID_alter().
File
- core/
modules/ system/ system.module, line 2566 - 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);
}
}