Role weights
Razunter - August 20, 2009 - 14:18
| Project: | User-Selectable Roles |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Ability to sort roles world be useful. You may use http://drupal.org/project/role_weights as base for this kind of sorting.

#1
This feature never dawned on me. I just assumed most people don't have more than a dozen or so roles and the order wouldn't really matter.
I'm not inclined to introduce a dependency (whether optional or required) on another third-party module, but I will leave this issue open for now in case there's interest expressed by other users.
#2
#3
I am interested in this being applied. While I don't think it is a vital feature it would be useful to have the ability to sort the available roles. In my case I have about 10 user-selectable roles upon registration.
#4
subscribing...
#5
I don't intend to provide this feature anytime soon. However it should be possible to adjust the weights of the checkboxes in the profile template (or via hook_form_alter()). Check out this example, which illustrates how to manipulate the form array element values.