You are here

function og_workflow_ng_events_hook_og_arguments in Organic groups 5.7

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

Describes the arguments available for the og hook

We pass uid and gid to workflow-ng so that the argument handlers can load the full entities. As an affect uid and gid must be mentioned here too.

1 call to og_workflow_ng_events_hook_og_arguments()
og_event_info in ./og_workflow_ng.inc
Implementation of hook_event_info()

File

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

Code

function og_workflow_ng_events_hook_og_arguments() {
  return array(
    'uid' => NULL,
    'gid' => NULL,
    'account' => array(
      '#entity' => 'user',
      '#label' => t('User, who joins group'),
      '#handler' => 'og_workflow_ng_events_argument_og_user',
    ),
    'group' => array(
      '#entity' => 'node',
      '#label' => t('Group'),
      '#handler' => 'og_workflow_ng_events_argument_og_node',
    ),
  ) + workflow_ng_events_global_user_argument();
}