You are here

function og_event_info in Organic groups 5

Same name and namespace in other branches
  1. 5.8 og_workflow_ng.inc \og_event_info()
  2. 5.3 og_workflow_ng.inc \og_event_info()
  3. 5.7 og_workflow_ng.inc \og_event_info()

Implementation of hook_event_info().

File

./og_workflow_ng.inc, line 11
workflow_ng integration for og module.

Code

function og_event_info() {
  return array(
    'og_user_insert' => array(
      '#label' => t('User joins group'),
      '#module' => t('OG'),
      '#arguments' => og_workflow_ng_events_hook_og_arguments(),
    ),
    'og_user_approved' => array(
      '#label' => t('User approved to group by admin'),
      '#module' => t('OG'),
      '#description' => t('A pending member is approved by a group administrator.'),
      '#arguments' => og_workflow_ng_events_hook_og_arguments(),
    ),
    'og_user_delete' => array(
      '#label' => t('User leaves group'),
      '#module' => t('OG'),
      '#arguments' => og_workflow_ng_events_hook_og_arguments(),
    ),
  );
}