Closed (fixed)
Project:
User-Selectable Roles
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2009 at 14:18 UTC
Updated:
16 Nov 2009 at 21:22 UTC
Ability to sort roles world be useful. You may use http://drupal.org/project/role_weights as base for this kind of sorting.
Comments
Comment #1
johnhanley commentedThis 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.
Comment #2
johnhanley commentedComment #3
deggertsen commentedI 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.
Comment #4
mdih commentedsubscribing...
Comment #5
johnhanley commentedI 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.