Commit 7bfb63b9 authored by catch's avatar catch
Browse files

Issue #1855114 by kiamlaluno: Fixed system_form_user_register_form_alter() and...

Issue #1855114 by kiamlaluno: Fixed system_form_user_register_form_alter() and system_form_user_profile_form_alter() return a reference parameter they get.
parent 117a617b
...@@ -2560,7 +2560,6 @@ function system_form_user_profile_form_alter(&$form, &$form_state) { ...@@ -2560,7 +2560,6 @@ function system_form_user_profile_form_alter(&$form, &$form_state) {
if (config('system.timezone')->get('user.configurable')) { if (config('system.timezone')->get('user.configurable')) {
system_user_timezone($form, $form_state); system_user_timezone($form, $form_state);
} }
return $form;
} }
/** /**
...@@ -2570,7 +2569,6 @@ function system_form_user_register_form_alter(&$form, &$form_state) { ...@@ -2570,7 +2569,6 @@ function system_form_user_register_form_alter(&$form, &$form_state) {
$config = config('system.timezone'); $config = config('system.timezone');
if ($config->get('user.configurable') && $config->get('user.default') == DRUPAL_USER_TIMEZONE_SELECT) { if ($config->get('user.configurable') && $config->get('user.default') == DRUPAL_USER_TIMEZONE_SELECT) {
system_user_timezone($form, $form_state); system_user_timezone($form, $form_state);
return $form;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment