function userreference_rules_action_info in Content Construction Kit (CCK) 6.2
Same name and namespace in other branches
- 6.3 modules/userreference/userreference.rules.inc \userreference_rules_action_info()
Implementation of hook_rules_action_info()
File
- modules/
userreference/ userreference.rules.inc, line 11 - Provides additional rules support for userreference fields.
Code
function userreference_rules_action_info() {
$info = array();
$info['userreference_rules_action_load'] = array(
'label' => t('Load a referenced user'),
'arguments' => array(
'node' => array(
'type' => 'node',
'label' => t('Content containing the user reference field'),
),
),
'new variables' => array(
'referenced_user' => array(
'type' => 'user',
'label' => t('Referenced user'),
),
),
'module' => 'CCK',
'help' => t('Note that if the field has multiple values, only the first user will be loaded.'),
);
return $info;
}