Description: 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
To allow a user to choose a role on registration
To provide a role using a key during registration
Memberships (not covered by rolekeys!)
To allow role assignment via "My account" area
http://drupal.org/project/rolesignup (5.x & unpublished)
Hopefully someone will be able to unify this mess.
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.
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.
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.
Related: drupal, Module, Registration, assignment, Roles, assign, administer, Select, accountquot, quotmy, Users, provide, empty, forced, Supply, registeruser, selectionradios
O/S:BSD, Linux, Solaris, Mac OS X
File Size: 10.0 KB