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