Project:User-Selectable Roles
Version:6.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Ability to sort roles world be useful. You may use http://drupal.org/project/role_weights as base for this kind of sorting.

Comments

#1

Title:Role weighs» Role weights

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

Status:active» postponed (maintainer needs more info)

#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

Status:postponed (maintainer needs more info)» closed (fixed)

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.

nobody click here