function _revisioning_rules_event_variables in Revisioning 8
Same name and namespace in other branches
- 7 revisioning.rules.inc \_revisioning_rules_event_variables()
Returns event variables suitable for use with a node revision event.
(aka Data Selectors)
1 call to _revisioning_rules_event_variables()
- revisioning_rules_event_info in ./
revisioning.rules.inc - Implements hook_rules_event_info().
File
- ./
revisioning.rules.inc, line 54 - Rules integration for Revisioning module.
Code
function _revisioning_rules_event_variables() {
$vars = array(
'user' => array(
'type' => 'user',
'label' => t('acting user'),
'description' => t('The acting user.'),
'handler' => 'revisioning_events_argument_global_user',
),
'revision' => array(
// Type revisioning_revision' ?
'type' => 'node',
'label' => t('current revision of target content.'),
'description' => t('The current content revision'),
'handler' => 'revisioning_events_argument_current_revision',
),
);
return $vars;
}