Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
74c7e1dc
Commit
74c7e1dc
authored
Jan 11, 2007
by
Steven Wittens
Browse files
#107510
: User timezone fieldset should be collapsible.
parent
7f2a4fbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/system/system.module
View file @
74c7e1dc
...
...
@@ -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.'
),
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment