Skip to content Skip to navigation

Vendome Registration Module Example

Printer-friendly version

This example shows how to add user registration and profile fields to any webform. Anonymous users will automatically be registered as "unvalidated users" and sent an email asking them to confirm their registration and set their passwords. Logged in users will have their profiles updated.

See the Webform tab on this node's edit screen for how to enable these features and place profile fields on the form.

The `add_user` hidden field, if it has a positive default value (e.g. 1), turns on the automatic registration feature.

If `add_user` is enabled, then there must be an email field with the key `useremail`, and it should be required.

The `update_profie` hidden field, if it has a positive default value (e.g. 1), turns on profile feature -- it will create a profile if one does not already exist for the user, or update an existing profile.

If `update_profile` is enabled, then any fields whose keys begin with 'profile_' and which match fields defined in the Profile module, will be added. (Must follow the Drupal convention of beginning Profile fieldnames with 'profile_'.)