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

6.x
Gábor Hojtsy 2007-10-01 09:04:54 +00:00
parent 0a69b04870
commit a0ae940483
1 changed files with 2 additions and 1 deletions

View File

@ -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));
}
}
}