Have descriptions for each role on the selection page

incrn8 - October 25, 2007 - 03:29
Project:Role Signup
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:cyberswat
Status:closed
Description

For a site I am working on, I wanted to have a description for each of the roles on the select page e.g. what their different permissions where, cost, etc. I figured it wouldn't be too hard to have this functionality, so I managed to code it myself. If anyone else feels they want this functionality, here's the patch.

The patch provides an admin/settings page where you can enter a description for whatever roles you want. That description is then displayed below the role name on the role selection page. You can leave the description textarea blank if you don't want descriptions to appear.

AttachmentSize
rolesignup_descriptions.patch2.8 KB

#1

incrn8 - November 1, 2007 - 17:21

It turns out there was a problem with user roles that have a space in them, so I have redone the patch to fix that. I have also added in an extra sort function so that you can change the order of the roles on the select role page.

AttachmentSize
rolesignup-descriptions2.patch 4 KB

#2

cyberswat - January 30, 2008 - 14:53
Assigned to:Anonymous» cyberswat

#3

cyberswat - January 30, 2008 - 18:23
Status:needs review» closed

http://drupal.org/cvs?commit=98413

 
 

Drupal is a registered trademark of Dries Buytaert.