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
1e04b134
Commit
1e04b134
authored
Sep 02, 2007
by
Gábor Hojtsy
Browse files
#172453
by webchick: proper default value for user roles (radios need an int, not an array)
parent
f0d5a424
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/user/user.module
View file @
1e04b134
...
...
@@ -2062,7 +2062,7 @@ function user_admin_access_form(&$form_state, $edit, $submit) {
$form
[
'status'
]
=
array
(
'#type'
=>
'radios'
,
'#title'
=>
t
(
'Access type'
),
'#default_value'
=>
isset
(
$edit
[
'status'
])
?
$edit
[
'status'
]
:
array
()
,
'#default_value'
=>
isset
(
$edit
[
'status'
])
?
$edit
[
'status'
]
:
0
,
'#options'
=>
array
(
'1'
=>
t
(
'Allow'
),
'0'
=>
t
(
'Deny'
)),
);
$type_options
=
array
(
'user'
=>
t
(
'Username'
),
'mail'
=>
t
(
'E-mail'
),
'host'
=>
t
(
'Host'
));
...
...
Write
Preview
Markdown
is supported
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