Download & Extend

admin/access hover help - little patch, big help

Project:Drupal core
Version:x.y.z
Component:user.module
Category:feature request
Priority:normal
Assigned:jjeff
Status:closed (duplicate)

Issue Summary

Here's a patch that adds a 'title' tag to all of the checkboxes in the admin/access grid. When you roll over the checkboxes in most browsers a tool-tip box will pop up with information about what each checkbox is.

Examples:
"anonymous user : edit own blog"
"authenticated user : post comments"
"admin : administer filters"

On a site with many roles and many modules, it becomes very easy to scroll away from the table headers, so this is essential for figuring out what you're clicking. It doesn't solve all of the admin/access page usability problems, but it does make the page a lot more usable.

Little patch. Big help.

-Jeff

AttachmentSizeStatusTest resultOperations
admin.access.hover.help.patch799 bytesIgnored: Check issue status.NoneNone

Comments

#1

Status:reviewed & tested by the community» needs work

Coding style needs work (incorrect use of spaces). Shouldn't these strings be translatable?

#2

This should be better.

By 'incorrect use of spaces', do you mean spacing around the array keys and values? I've fixed that and the $perm (permission) value now gets translated. Role names aren't translated elsewhere on the admin/access page, so I've left $name (role name) untranslated.

-Jeff

AttachmentSizeStatusTest resultOperations
admin.access.hover.help.v2.patch804 bytesIgnored: Check issue status.NoneNone

#3

Status:needs work» needs review

#4

Anyone want to review my code?

Thanks,
Jeff

#5

Rerolled patch against current HEAD. Looks good to me and seems to be pretty useful :)

AttachmentSizeStatusTest resultOperations
user.module_6.patch803 bytesIgnored: Check issue status.NoneNone

#6

changed spaces. And created http://drupal.org/node/30785.

AttachmentSizeStatusTest resultOperations
user.module_6_0.patch805 bytesIgnored: Check issue status.NoneNone

#7

Status:needs review» reviewed & tested by the community

lets push this one line beauty to 'ready for commit'

#8

Thank you Moshe!

#9

Committed by HEAD.

#10

Status:reviewed & tested by the community» fixed

#11

Status:fixed» closed (fixed)

#12

Version:<none>» 4.6.5
Status:closed (fixed)» active

Looks like this functionality got destroyed during the formapi upgrade.

#13

Status:active» closed (duplicate)

i put this feature into my patch at http://drupal.org/node/44379. if mine fails, then resubmit this one alone. required a tiny change to theme_user_admin_perm(). here is the changed line (see end):

$row[] = array('data' => form_render($form['checkboxes'][$rid][$key]), 'align' => 'center', 'title' => $key);