Commit a0ae9404 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#179510 by jjeff: (usability) include role name in permission checkbox tooltips

parent 0a69b048
......@@ -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));
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment