function og_rules_action_info in Organic groups 6.2
Same name and namespace in other branches
- 6 includes/og.rules.inc \og_rules_action_info()
- 7.2 og.rules.inc \og_rules_action_info()
- 7 og.rules.inc \og_rules_action_info()
Implementation of hook_rules_action_info().
File
- includes/
og.rules.inc, line 78 - Rules integration for the og module.
Code
function og_rules_action_info() {
return array(
'og_rules_action_subscribe_user' => array(
'label' => t('Subscribe user to group'),
'arguments' => array(
'user' => array(
'type' => 'user',
'label' => t('User who will be subscribed'),
),
'group' => array(
'type' => 'node',
'label' => t('Group that user will be subscribed to'),
),
),
'module' => 'Organic groups',
),
'og_rules_action_remove_user' => array(
'label' => t('Unsubscribe user from group'),
'arguments' => array(
'user' => array(
'type' => 'user',
'label' => t('User who will be unsubscribed'),
),
'group' => array(
'type' => 'node',
'label' => t('Group that user will be unsubscribed from'),
),
),
'module' => 'Organic groups',
),
'og_rules_action_add_group_node' => array(
'label' => t('Add group node settings to content'),
'arguments' => array(
'node' => array(
'type' => 'node',
'label' => t('Content that will become a group node'),
),
),
'help' => t("When creating a group node organic groups module requires some group settings. This action should be used after 'Add new content' action, that adds a <a href=\"@group-node-type\">group node type</a> content, and will result with a new group node.", array(
'@group-node-type' => url('admin/og/og'),
)),
'module' => 'Organic groups',
),
'og_rules_action_audience_add_group' => array(
'label' => t('Add group to audience of content'),
'arguments' => array(
'node' => array(
'type' => 'node',
'label' => t('Content whose audience is changed'),
),
'group' => array(
'type' => 'node',
'label' => t('Group that will be added to audience'),
),
),
'help' => t('Note, that group node id must be known when this action runs, so for it to work on newly created group you must save that group first.'),
'module' => 'Organic groups',
),
'og_rules_action_audience_remove_group' => array(
'label' => t('Remove group from audience of content'),
'arguments' => array(
'node' => array(
'type' => 'node',
'label' => t('Content whose audience is changed'),
),
'group' => array(
'type' => 'node',
'label' => t('Group that will be removed from audience'),
),
),
'module' => 'Organic groups',
),
);
}