#107510: User timezone fieldset should be collapsible.
parent
7f2a4fbfc5
commit
74c7e1dce8
|
@ -331,10 +331,18 @@ function system_user($type, $edit, &$user, $category = NULL) {
|
|||
|
||||
if (variable_get('configurable_timezones', 1)) {
|
||||
$zones = _system_zonelist();
|
||||
$form['timezone'] = array('#type'=>'fieldset', '#title' => t('Locale settings'), '#weight' => 6);
|
||||
$form['timezone'] = array(
|
||||
'#type'=>'fieldset',
|
||||
'#title' => t('Locale settings'),
|
||||
'#weight' => 6,
|
||||
'#collapsible' => TRUE,
|
||||
);
|
||||
$form['timezone']['timezone'] = array(
|
||||
'#type' => 'select', '#title' => t('Time zone'), '#default_value' => strlen($edit['timezone']) ? $edit['timezone'] : variable_get('date_default_timezone', 0),
|
||||
'#options' => $zones, '#description' => t('Select your current local time. Dates and times throughout this site will be displayed using this time zone.')
|
||||
'#type' => 'select',
|
||||
'#title' => t('Time zone'),
|
||||
'#default_value' => strlen($edit['timezone']) ? $edit['timezone'] : variable_get('date_default_timezone', 0),
|
||||
'#options' => $zones,
|
||||
'#description' => t('Select your current local time. Dates and times throughout this site will be displayed using this time zone.'),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue