You are here

function og_rules_event_info in Organic groups 6

Same name and namespace in other branches
  1. 6.2 includes/og.rules.inc \og_rules_event_info()
  2. 7.2 og.rules.inc \og_rules_event_info()
  3. 7 og.rules.inc \og_rules_event_info()

Implementation of hook_rules_event_info().

File

includes/og.rules.inc, line 11
Rules integration for the og module.

Code

function og_rules_event_info() {
  return array(
    'og_user_insert' => array(
      'label' => t('User subscribes to group'),
      'help' => t("A user has subscribed to a group and is approved. If the user isn't approved then this event won't be triggered."),
      'arguments' => og_rules_events_hook_og_arguments(),
      'module' => 'Organic groups',
    ),
    'og_user_approved' => array(
      'label' => t('User approved to group by admin'),
      'arguments' => og_rules_events_hook_og_arguments(),
      'module' => 'Organic groups',
    ),
    'og_user_delete' => array(
      'label' => t('User unsubscribes from group'),
      'arguments' => og_rules_events_hook_og_arguments(),
      'module' => 'Organic groups',
    ),
  );
}