function og_actions_action_info in Organic groups 6
Same name and namespace in other branches
- 6.2 modules/og_actions/og_actions.module \og_actions_action_info()
Implementation of hook_action_info().
1 call to og_actions_action_info()
- og_actions_rules_action_info_alter in modules/
og_actions/ og_actions.module - Implementation of hook_rules_action_info_alter().
File
- modules/
og_actions/ og_actions.module, line 6
Code
function og_actions_action_info() {
$actions = array(
'og_remove_groups_action' => array(
'type' => 'node',
'description' => t('Remove post from all groups'),
'configurable' => FALSE,
'behavior' => array(
'changes_node_property',
),
// For Views Bulk Operations module
'hooks' => array(
'nodeapi' => array(
'insert',
'update',
),
),
),
'og_add_group_action' => array(
'type' => 'node',
'description' => t('Add post to the specified group'),
'behavior' => array(
'changes_node_property',
),
// For Views Bulk Operations module
'configurable' => TRUE,
'hooks' => array(
'nodeapi' => array(
'insert',
'update',
),
),
),
'og_remove_group_action' => array(
'type' => 'node',
'description' => t('Remove post from the specified group'),
'behavior' => array(
'changes_node_property',
),
// For Views Bulk Operations module
'configurable' => TRUE,
'hooks' => array(
'nodeapi' => array(
'insert',
'update',
),
),
),
'og_subscribe_user_action' => array(
'type' => 'user',
'description' => t('Subscribe user to the specified group'),
'configurable' => TRUE,
'hooks' => array(),
),
'og_unsubscribe_user_action' => array(
'type' => 'user',
'description' => t('Unsubscribe user from the specified group'),
'configurable' => TRUE,
'hooks' => array(),
),
'og_promote_user_action' => array(
'type' => 'user',
'description' => t('Promote user to an administrator in the specified group'),
'configurable' => TRUE,
'hooks' => array(),
),
'og_demote_user_action' => array(
'type' => 'user',
'description' => t('Demote user from an administrator in the specified group'),
'configurable' => TRUE,
'hooks' => array(),
),
'og_approve_user_action' => array(
'type' => 'user',
'description' => t('Approve user subscription to the specified group'),
'configurable' => TRUE,
'hooks' => array(),
),
'og_deny_user_action' => array(
'type' => 'user',
'description' => t('Deny user subscription to the specified group'),
'configurable' => TRUE,
'hooks' => array(),
),
);
if (module_exists('og_access')) {
$actions += array(
'og_make_public_action' => array(
'type' => 'node',
'description' => t('Make post publicly visible'),
'behavior' => array(
'changes_node_property',
),
// For Views Bulk Operations module
'configurable' => FALSE,
'hooks' => array(
'nodeapi' => array(
'insert',
'update',
),
),
),
'og_make_private_action' => array(
'type' => 'node',
'description' => t('Make post private to its groups'),
'behavior' => array(
'changes_node_property',
),
// For Views Bulk Operations module
'configurable' => FALSE,
'hooks' => array(
'nodeapi' => array(
'insert',
'update',
),
),
),
);
}
return $actions;
}