Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
a0ae9404
Commit
a0ae9404
authored
Oct 01, 2007
by
Gábor Hojtsy
Browse files
#179510
by jjeff: (usability) include role name in permission checkbox tooltips
parent
0a69b048
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/user/user.admin.inc
View file @
a0ae9404
...
...
@@ -578,6 +578,7 @@ function user_admin_perm_submit($form, &$form_state) {
* @ingroup themeable
*/
function
theme_user_admin_perm
(
$form
)
{
$roles
=
user_roles
();
foreach
(
element_children
(
$form
[
'permission'
])
as
$key
)
{
// Don't take form control structures
if
(
is_array
(
$form
[
'permission'
][
$key
]))
{
...
...
@@ -590,7 +591,7 @@ function theme_user_admin_perm($form) {
$row
[]
=
array
(
'data'
=>
drupal_render
(
$form
[
'permission'
][
$key
]),
'class'
=>
'permission'
);
foreach
(
element_children
(
$form
[
'checkboxes'
])
as
$rid
)
{
if
(
is_array
(
$form
[
'checkboxes'
][
$rid
]))
{
$row
[]
=
array
(
'data'
=>
drupal_render
(
$form
[
'checkboxes'
][
$rid
][
$key
]),
'align'
=>
'center'
,
'title'
=>
t
(
$key
));
$row
[]
=
array
(
'data'
=>
drupal_render
(
$form
[
'checkboxes'
][
$rid
][
$key
]),
'align'
=>
'center'
,
'title'
=>
$roles
[
$rid
]
.
' : '
.
t
(
$key
));
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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