OG Role Reference Field

Component ID

1271124

Component name

OG Role Reference Field

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

1891

Component created

Component changed

Component body

This module allows a group_content entity (any entity with a group_audience attached to it) to also contain a reference field to role(s) within the selected audience.

"og_role_field" integrates well with:

  • Rules
    • Grant a group role on checkout using Drupal commerce
    • Grant a group role on a specific event
    • Use rules_scheduler to remove a group role after a certain amount of time
  • Views

How to use it

  1. Add to your drush make or install on a present site with Organic Groups.
  2. Enable the module.
  3. Go to the OG field settings page.
  4. Attach a "group_audience" field to the Entity of your choice.
  5. Go to your entity or bundle, and add this field to it.
  6. Choose the form field widget type of your choice: [checkboxes, or an autocomplete].

This project is/was sponsored by AllPlayers.com.