function _bat_unit_rules_event_variables in Booking and Availability Management Tools for Drupal 7
Returns event variables suitable for use with a type revision event.
1 call to _bat_unit_rules_event_variables()
- bat_unit_rules_event_info in modules/
bat_unit/ bat_unit.rules.inc - Implements hook_rules_event_info().
File
- modules/
bat_unit/ bat_unit.rules.inc, line 47
Code
function _bat_unit_rules_event_variables() {
$vars = array(
'user' => array(
'type' => 'user',
'label' => t('acting user'),
'description' => t('The acting user.'),
'handler' => 'bat_type_revisioning_events_argument_global_user',
),
'bat_type' => array(
'type' => 'bat_type',
'label' => t('target type.'),
),
'revision' => array(
'type' => 'bat_type',
'label' => t('current revision of target content.'),
'description' => t('The current content revision'),
'handler' => 'bat_type_revisioning_events_argument_current_revision',
),
);
return $vars;
}