role weights

Role Weights is a Drupal module which allows site admins to specify certain weights for user roles. These weights can be used by other modules and by Views to sort lists of nodes.

Role Weights gets Token support and a 6.x branch

22nd Jun
2009

Role Weights finally gets a bit of loving in the form of a 5.x-1.4 release with a couple of new features, namely Token support for a user's lightest and heaviest roles and the optional re-ordering of /admin/user/roles and /admin/user/access forms by role weight. These features were introduced in 5.x-1.3, however 5.x-1.4 also fixes a bug which left orphaned entries in the role_weights table after roles got deleted.

I've also branched for 6.x compatibility (at last) - snapshots from 6.x-1.x-dev should be functional and in line feature-wise with 5.x-1.4, bar Views 2 support. I'd love to improve Role Weights for 6.x: re-writing support for Views 2 and adding drag and drop re-ordering of roles being two areas that need some attention, but I'm just too darn short on time at the moment. As always, patches and reviews are welcome in the issue queue!

As a side note, I found this reference pretty useful regarding some function/API changes not mentioned elsewhere.

Role Weights 1.0 for Drupal 5

22nd May
2007

I tagged Role Weights for Drupal 5 recently, and released Role Weights 1.0 for Drupal 5. Enjoy, and post any issues to the project queue.

Role Weights 1.0

30th Jan
2007

I've fixed up a couple of things in Role Weights (thanks to nedjo) and released the initial version 4.7.x-1.0.

Work is under way on a Drupal 5 update.

Role Weights

11th Apr
2006

role_weights_1.pngWell, I've applied for CVS access on drupal.org, been approved, and committed my first module: Role Weights. This module allows admins to specify weights for roles, which other modules can then make use of.

Role Weights is simple, and not all that much use on its own. I committed this one first as it was the simplest to get up to a reasonable standard (although there is always room for improvement). Please try the module out if you are a Drupal module or theme developer, or a site admin with a bit of coding nouse.