function og_rules_action_info in Organic groups 6
Same name and namespace in other branches
- 6.2 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',
),
);
}