Problem/Motivation

Role summaries to show on the Roles page

Proposed resolution

Add the Feature

Comments

aditya_anurag created an issue. See original summary.

rakesh.gectcr’s picture

Status: Active » Needs review
StatusFileSize
new3.61 KB
krknth’s picture

Thanks, need some time to review.

krknth’s picture

@heykarthikwithu will be reviewing.

heykarthikwithu’s picture

Assigned: Unassigned » heykarthikwithu
heykarthikwithu’s picture

Title: Role summaries to show on the Roles page » Role Help text to show on the Roles page.
Assigned: heykarthikwithu » Unassigned

Patch #2 adds the help text to the roles on the "admin/people/permissions/roles" page.

Minor coding formats needs to be changed in the patch.

+  $theme_registry['user_admin_roles']['function'] = 'role_help_user_admin_roles';
+
 }
+      $row[] = t('@name', array('@name' => $name)) . '<br><div class="description">' . check_plain($summary) . '</div>';
+      $edit = l(t('edit role'), 'admin/people/permissions/roles/edit/' . $rid);
     }
+      $row[] = drupal_render($form['roles'][$rid]['weight']);
+      $row[] = $edit;
+      $row[] = l(t('edit permissions'), 'admin/people/permissions/' . $rid);
+
+    $rows[] = array('data' => $row, 'class' => array('draggable'));
+
   }
heykarthikwithu’s picture

Status: Needs review » Needs work
aditya_anurag’s picture

Status: Needs work » Needs review
StatusFileSize
new3.59 KB

@heykarthikwithu
Applied the changes as per #6 comment.

krknth’s picture

@aditya_anurag, it will be easy to review if you add interdiff file :)

aditya_anurag’s picture

StatusFileSize
new1.46 KB

@krknth,
please find the interdiff file.

heykarthikwithu’s picture

Status: Needs review » Reviewed & tested by the community

Patch #8 has changes, can be pushed. So moving to RTBC.

Note: A minor 'new line' needs to be removed while pushing the patch.

-  $theme_registry['user_admin_new_role']['function'] = 'role_help_user_admin_new_role';
+  $theme_registry['user_admin_roles']['function'] = 'role_help_user_admin_roles';
 }
 
+
 /**
  * Theme a role help section.

  • krknth committed 9ece7e0 on authored by aditya_anurag
    Issue #2619886 by aditya_anurag, rakesh.gectcr, heykarthikwithu, krknth...
krknth’s picture

Status: Reviewed & tested by the community » Fixed

Thanks! committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.