Posted by fuzzy76 on March 21, 2011 at 2:09pm
Overrides the internal "add users" page of Organic Groups with a more powerful alternative.
Takes a list where each row can be either:
- username
- mail address
- firstname, lastname, mail address
- firstname, lastname, mail address, desired username
In case 1 or if there is an mail address provided, the module first checks if it matches an existing user, and adds that user to the group.
In case 2-4, if there is no matching user, the user will be created (as long as the person submitting the form has permissions to do so). Newly created users will also have a content profile node created for them if enabled (has a settings page).
The usernames are created by trying these alternatives in order:
- If one is provided, the suggested username
- The first part of the email address (everything before the @)
- If both firstname and lastname is provided, "F.L".
F is x number of letters from firstname, where x starts at 1 and goes up to the full length of firstname.
L is lastname. - If firstname is provided without lastname, firstname only.
- If lastname is provided without firstname, lastname only.
- If both firstname and lastname is provided, try adding numbers 1 and up to a name formatted as F.Lastname where F is the first letter of firstname.
- Last (only performed if the previous combination didn't) add numbers 1 and up to the first part of the email address.
Downloads
Project Information
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Organic Groups (OG)
- Reported installs: 101 sites currently report using this module. View usage statistics.
- Downloads: 586
- Last modified: May 20, 2011