Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
ef451365
Commit
ef451365
authored
Dec 02, 2009
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#647250
by brianV: permissions page not in alphabetical order.
parent
99833c62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
modules/user/user.admin.inc
modules/user/user.admin.inc
+12
-3
No files found.
modules/user/user.admin.inc
View file @
ef451365
...
...
@@ -194,7 +194,7 @@ function user_admin_account() {
$users_roles
[]
=
$roles
[
$user_role
->
rid
];
}
asort
(
$users_roles
);
$options
[
$account
->
uid
]
=
array
(
'username'
=>
theme
(
'username'
,
array
(
'account'
=>
$account
)),
'status'
=>
$status
[
$account
->
status
],
...
...
@@ -204,7 +204,7 @@ function user_admin_account() {
'operations'
=>
array
(
'data'
=>
array
(
'#type'
=>
'link'
,
'#title'
=>
t
(
'edit'
),
'#href'
=>
"user/
$account->uid
/edit"
,
'#options'
=>
array
(
'query'
=>
$destination
))),
);
}
$form
[
'accounts'
]
=
array
(
'#type'
=>
'tableselect'
,
'#header'
=>
$header
,
...
...
@@ -613,7 +613,7 @@ function user_admin_settings() {
$form
[
'email_canceled'
][
'settings'
]
=
array
(
'#type'
=>
'container'
,
'#states'
=>
array
(
// Hide the settings when the cancel notify checkbox is disabled.
// Hide the settings when the cancel notify checkbox is disabled.
'invisible'
=>
array
(
'input[name="user_mail_status_canceled_notify"]'
=>
array
(
'checked'
=>
FALSE
),
),
...
...
@@ -661,7 +661,16 @@ function user_admin_permissions($form, $form_state, $rid = NULL) {
$options
=
array
();
$module_info
=
system_get_info
(
'module'
);
$hide_descriptions
=
!
system_admin_compact_mode
();
// Get a list of all the modules implementing a hook_permission() and sort by
// display name.
$modules
=
array
();
foreach
(
module_implements
(
'permission'
)
as
$module
)
{
$modules
[
$module_info
[
$module
][
'name'
]]
=
$module
;
}
ksort
(
$modules
);
foreach
(
$modules
as
$display_name
=>
$module
)
{
if
(
$permissions
=
module_invoke
(
$module
,
'permission'
))
{
$form
[
'permission'
][]
=
array
(
'#markup'
=>
$module_info
[
$module
][
'name'
],
...
...
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