function og_subgroups_action_info in Subgroups for Organic groups 5
Same name and namespace in other branches
- 5.4 og_subgroups.workflow_ng.inc \og_subgroups_action_info()
Implementation of hook_action_info().
File
Code
function og_subgroups_action_info() {
$info = array();
$info['og_subgroups_workflow_ng_action_set_parent'] = array(
'#label' => t('Set subgroups hierarchy'),
'#arguments' => array(
'node' => array(
'#entity' => 'node',
'#label' => t('Content that will be the parent group'),
),
'node_parent' => array(
'#entity' => 'node',
'#label' => t('Content that will be the child group'),
),
),
'#description' => t('Set groups hierarchy by setting the parent and the child group.'),
'#module' => 'OG Subgroups',
);
$info['og_subgroups_workflow_ng_action_remove_hierarchy'] = array(
'#label' => t('Remove group from subgroups hierarchy'),
'#arguments' => array(
'node' => array(
'#entity' => 'node',
'#label' => t('Content that will be removed from the groups hierarchy'),
),
),
'#description' => t('Remove the group from the groups hierarchy.'),
'#module' => 'OG Subgroups',
);
return $info;
}