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
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

Bacteria Man - August 24, 2009 - 01:08
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

Bacteria Man - August 24, 2009 - 01:09
Status:active» postponed (maintainer needs more info)

#3

deggertsen - September 14, 2009 - 20:34

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

mdih - October 11, 2009 - 04:52

subscribing...

#5

Bacteria Man - November 16, 2009 - 21:22
Status:postponed (maintainer needs more info)» closed

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.

 
 

Drupal is a registered trademark of Dries Buytaert.