You are here

function _revisioning_rules_event_arguments in Revisioning 6.4

Same name and namespace in other branches
  1. 6.3 revisioning.rules.inc \_revisioning_rules_event_arguments()

Returns arguments suitable for using it with a node.

1 call to _revisioning_rules_event_arguments()
revisioning_rules_event_info in ./revisioning.rules.inc
Implementation of hook_rules_event_info().

File

./revisioning.rules.inc, line 113
Rules integration for Revisioning module.

Code

function _revisioning_rules_event_arguments() {
  return array(
    'node' => array(
      'type' => 'node',
      'label' => t('target revision of operation'),
    ),
    'current_revision' => array(
      'type' => 'node',
      'label' => t('current revision of target content'),
      'handler' => 'revisioning_events_argument_current_revision',
    ),
    'author' => array(
      'type' => 'user',
      'label' => t('content author'),
      'handler' => 'rules_events_argument_node_author',
    ),
    'target_author' => array(
      'type' => 'user',
      'label' => t('target revision author'),
      'handler' => 'revisioning_events_argument_target_revision_author',
    ),
    'current_author' => array(
      'type' => 'user',
      'label' => t('current revision author'),
      'handler' => 'revisioning_events_argument_current_revision_author',
    ),
    'user' => array(
      'type' => 'user',
      'label' => t('acting user'),
      'handler' => 'rules_events_argument_global_user',
    ),
  );
}