OG Roles Email and Tokens

Categories

RDF

Component ID

1115916

Component name

OG Roles Email and Tokens

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module extends rules by adding an action which allows any new node created in a group (or workflow change) to send notices to specific roles of that group. Additionally, two new tokens have been added [node:groups] and [node:group_names]. This module is good-to-go out of the box -- no specific configuration is required (one option -- see below). Just activate!

[node:groups] Will return each group_id where a node exists in more than one group (allowing notification to be sent to roles within each group)
[node:group_names] Returns the group_name for each group wherein a node exists.

NOTE:In addition to a rule action and two token additions, enhancement to standard rules modules comes in the special functionality which also exists to place this rule in "test" mode, where instead of sending messages (email) to roles within a group, email is instead sent to a list of emails stored inside a specific node. This can be used as a shortcut method for contacting specific, non-OG related users if an override is desired (extends functionality to beyond OG roles).

To change the hard-wired "return" email address in the code, modify line 74 in the OGEmails.rules.inc. This is not strictly required, as the module will operate without any changes. However, the default is set to 'web_support@yoursite.gov'.