You are here

function og_action_info in Organic groups 5.3

Same name and namespace in other branches
  1. 5.8 og_workflow_ng.inc \og_action_info()
  2. 5 og_workflow_ng.inc \og_action_info()
  3. 7.2 og.module \og_action_info()

Implementation of hook_action_info().

File

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

Code

function og_action_info() {
  return array(
    'og_workflow_ng_action_subscribe_user' => array(
      '#label' => t('Subscribe user to group'),
      '#arguments' => array(
        'user' => array(
          '#entity' => 'user',
          '#label' => t('User who will be subscribed'),
        ),
        'group' => array(
          '#entity' => 'node',
          '#label' => t('Group that user will be subscribed to'),
        ),
      ),
      '#description' => t('Subscribe a user to a group.'),
      '#module' => 'OG',
    ),
    'og_workflow_ng_action_remove_user' => array(
      '#label' => t('Unsubscribe user from group'),
      '#arguments' => array(
        'user' => array(
          '#entity' => 'user',
          '#label' => t('User who will be unsubscribed'),
        ),
        'group' => array(
          '#entity' => 'node',
          '#label' => t('Group that user will be unsubscribed from'),
        ),
      ),
      '#description' => t('Unsubscribe a user from a group.'),
      '#module' => 'OG',
    ),
  );
}