Registration Role Keys

Alan D. - May 20, 2009 - 14:12

Since there are far too many modules implementing partial functionality of this module, and the slow uptake (~40 users or 0.01% of Drupal sites), I have decided to declare the end of the road for rolekeys.

Here are some alternatives

To assign a role on registration try

Core actions can easily handle this
http://drupal.org/project/autoassignrole
http://drupal.org/project/registration_role

To allow a user to choose a role on registration
?

To provide a role using a key during registration
http://drupal.org/project/regcode

Memberships (not covered by rolekeys!)
http://drupal.org/project/ubercart

To allow role assignment via "My account" area
http://drupal.org/project/autoassignrole

Also
http://drupal.org/project/og_joinrole
http://drupal.org/project/civimember_roles

Older modules
http://drupal.org/project/user_autorole (5.x)
http://drupal.org/project/rolesignup (5.x & unpublished)

Hopefully someone will be able to unify this mess.

Features

The module allows you to assign 0 or more Drupal roles to a user defined key. There is no limit on the number of keys that a site can have. Keys can then be used during registration or in the "My account" area. The module needs to be configured before it is enabled on the respective areas.

Registration

Auto-assign
Just add one or more roles to the "default" key. These are automatically assigned during registration when enabled.

By a secrete
Use the password or textfield options during registration.

By having an empty key, this field becomes optional.

If there are no empty keys, then the user is forced to supply a valid key to register.

User selection
Radios, checkboxes, select list, etc, all provide the ability for the user to select the desired keys themselves.

My account area

Similar features to the registration process

There is no tracking of role assignment, it simply handles assignment of roles when the user joins.

Points of note

You need the max permission to use the module, 'administer access control' for Drupal 5, 'administer permissions' for Drupal 6.

I did this as you can assign any role to new users, fairly dangerous. Take care with your role selection.

Releases

Official releasesDateSizeLinksStatus
6.x-1.02009-Jul-2112.06 KBRecommended for 6.xThis is currently the recommended release for 6.x.
5.x-1.02009-May-2511.49 KBRecommended for 5.xThis is currently the recommended release for 5.x.
Development snapshotsDateSizeLinksStatus
6.x-1.x-dev2009-Jul-2112.06 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.