function og_rules_events_hook_og_arguments in Organic groups 6
Same name and namespace in other branches
- 6.2 includes/og.rules.inc \og_rules_events_hook_og_arguments()
Describes the arguments available for the og_hook().
We pass uid and gid to rules so that the argument handlers can load the full variables, but we hide them from the interface.
1 call to og_rules_events_hook_og_arguments()
- og_rules_event_info in includes/
og.rules.inc - Implementation of hook_rules_event_info().
File
- includes/
og.rules.inc, line 38 - Rules integration for the og module.
Code
function og_rules_events_hook_og_arguments() {
return array(
'uid' => array(
'type' => 'number',
'hidden' => TRUE,
),
'gid' => array(
'type' => 'number',
'hidden' => TRUE,
),
'account' => array(
'type' => 'user',
'label' => t('User that subscribed to the group'),
'handler' => 'og_rules_events_argument_og_user',
),
'group' => array(
'type' => 'node',
'label' => t('Group'),
'handler' => 'og_rules_events_argument_og_node',
),
) + rules_events_global_user_argument();
}