The Entity Registrations module provides the ability for users to register for any entity in Drupal. Registrations are fieldable entities and can collect any information you need from your registrants. By attaching a Registration field to any entity, you enable users to fill out a form containing customized fields to register for that entity.

Entity Registrations currently has the following features:

  • Registrations are fieldable entities, so collect any information you need from your registrants
  • Unlimited types of registrations, or bundles.
  • Enable registrations of a given type/bundle on any entity type or individual entity through a registration field.
  • Per entity registration settings like capacity, reminders, etc.
  • Send broadcast emails to registrants.
  • Allow a single user to register multiple registrants.
  • Integration with Views and Rules via Entity API.

Registration Common Configurations
This section is intended to be a starting point for site builders and themers to help with common registration configurations that enhance the end user experience. For a detailed walkthrough, check out codekarate's videos:

  1. User Profiles - Showing registration related content on user profiles.

Entity based registration system for Drupal.

Configuration

  1. Download and enable the module.
  2. Create at least one registration bundle (or type) at
    admin/structure/registration/registration_types, much like you would a content type.
  3. Add a registration field to any entity you want to enable registrations
    for. Note the display options: default, link to the registration form,
    and embedding the actual form.
  4. When you add or edit an entity, select the registration bundle you want to
    use for.
  5. Registrations are now enabled for the entity and you can configure the
    registration settings via a local task.

Permissions

One of the cornerstones of the Entity Registrations module is the granular permission control it provides over which roles have access to Registration Types. Each Registration Type has its own permission settings. This means that if you have Workshops for authenticated users and you have Events for both anonymous and authenticated users, you will need to set up the permissions for each Registration Type appropriately.

Hint: If you want to allow anonymous and authenticated users to be able to register for a particular Registration Type, you will need to set the permissions for that Registration Type to "checked" on "Create new registration" and "Register self" for both, anonymous and authenticated users.

Settings

  1. Enable: Turn registrations on / off for a given node.
  2. Capacity: The maximum number of registrants for a given node. Leave at 0 for
    no limit.
  3. Spaces allowed under "Additional Settings": You can allow a single user to register for more than one space in the transaction - this is useful when an event allows for guests or group signup.
  4. Allow multiple registrations: Governs whether a user can create 2 or more registration transactions with their user account for a single event.
    So, for example, if "Allow multiple registrations" was unchecked and you registered yourself and a guest (assuming that more than 1 "Spaces allowed" is enabled) for an event, that "group signup" would be the only registration you would be allowed to make.
  5. Send a reminder. Checking this exposes reminder date and message template
    fields.

Usage / Features

  1. Manage registrations for any enabled entity.
  2. Per entity registration settings.
  3. Broadcast emails to all event registrants.
  4. Associate any field types to a registration to collect the information needed
    for your event.
  5. Send reminders on a given date.

Integrations for more functionality

Fields

This is where things get interesting. You can add any Drupal field to customize
your registrations. The fields widgets will automatically appear on the register
form and will be available from a registration detail page.

Views

Not happy with the default tabular list of registrations? No problem,
registrations and their fields are all Views friendly. You can override the
default event registrations list, create additional ones, etc.

Rules

Rules is a great companion for Registration to send confirmation emails, event
notifications, etc.

Once you've created an node with a registration attached to it, you can also register for that event using a rule.

Perhaps you'd like to automatically register the author of a piece of content to that node. For this example, I've created a content type "Event." In order to register the author of the node to that node, a rule must first create a new piece of content with the "Registration" type pointing to the node just created. So the first step in the rules creation process is to set the event to be "After saving new content."

Step 1

To make sure you're only triggering this rule for the Event content type, add a condition "Content is of type"="Event".

Step 2

For your actions, you'll start by creating the new entity of type "Registration." Select the correct registration type from the list of types in the dropdown (these are pulled from the the list of registration types you created on the Registration configuration page). In the Host Entity ID fieldset, select the Node id of the item you just created. Then give the Host Entity Type the value of "node" and give the entity you just created a meaningful name. (I used "Created entity").

Create a new entity

This is not enough to successfully register the user for the event, however. To do that, you need to collect three more pieces of information (machine name appears in parenthesis). These are the minimum fields that must be entered to create a successful registration:

  1. Registration Author (author) -- the user id of the person who is reserving space for the registree
  2. User (user) -- The user id of the person who is being registered for the event (can be 0 for an anonymous user)
  3. Count (count) -- The number of spots taken by the registree (can be set to a static amount, like 1)

Step 4

Registrants via Field Collection

Attaching a field collection field to a registration allows you to collect
granular information for multiple registrants for a single registration. Here’s
how it works.

  1. Download and enable Field Collection.
  2. Add a field collection field to your registration entity.
  3. Add any fields that you want to collect to the field collection entity and
    configure widget and display settings. You might also want to consider field
    collection table to create tabular lists of registrants.

That’s it. Now, when a registration is added, users can complete one or more
field collections for each registrant.

Roadmap

  1. Tighter integration with Field Collection for a more robust registration ->
    registrant system. Namely, mapping the registration capacity to the number of
    field collections per registration.
  2. Registration Feature that bundles everything you need in a tidy package to
    start using registrations out of the box.

Technical explanation of Entity Registration's Architecture

Registration Types: Bundles analogous to content types that are fieldable. They define which fields an individual registration needs to store. Used to create the registration form that's attached to an event.

Individual registration: An entity (analogous to a node) that contains field data, for the fields defined in the registration type. Eg ("Bob's t-shirt size", bob's meal preference)

Registration State: Analogous to signup status in Drupal 6, Bundles are used to manage registration workflow settings. Reason to use bundles is so that registration states are exportable, weight-able. There are no individual registration state entities.

All registration bundles have a property called state that references a registration state. It's optional to display that property to the user but it always exists.

AttachmentSize
step1.png14.33 KB
step2.png24.96 KB
step3.png65.33 KB
create_new_entity.png100.3 KB