You are here

function _revisioning_rules_event_variables in Revisioning 7

Same name and namespace in other branches
  1. 8 revisioning.rules.inc \_revisioning_rules_event_variables()

Returns event variables suitable for use with a node revision event.

(aka Data Selectors)

2 calls to _revisioning_rules_event_variables()
revisioning_rules_event_info in ./revisioning.rules.inc
Implements hook_rules_event_info().
revisioning_rules_event_info_alter in ./revisioning.rules.inc
Implements hook_rules_event_info_alter().

File

./revisioning.rules.inc, line 73
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',
    ),
    'node' => array(
      'type' => 'node',
      'label' => t('target node.'),
    ),
    '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;
}