Registration Role Keys
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 releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-1.0 | 2009-Jul-21 | 12.06 KB | Download · Release notes | Recommended for 6.x | |
| 5.x-1.0 | 2009-May-25 | 11.49 KB | Download · Release notes | Recommended for 5.x | |
| Development snapshots | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-1.x-dev | 2009-Jul-21 | 12.06 KB | Download · Release notes | Development snapshot | |
