function og_workflow_ng_events_hook_og_arguments in Organic groups 5.8
Same name and namespace in other branches
- 5 og_workflow_ng.inc \og_workflow_ng_events_hook_og_arguments()
- 5.3 og_workflow_ng.inc \og_workflow_ng_events_hook_og_arguments()
- 5.7 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();
}