You are here

function revisioning_rules_action_info in Revisioning 6.4

Same name and namespace in other branches
  1. 8 revisioning.rules.inc \revisioning_rules_action_info()
  2. 6.3 revisioning.rules.inc \revisioning_rules_action_info()
  3. 7 revisioning.rules.inc \revisioning_rules_action_info()

Implementation of hook_rules_action_info().

File

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

Code

function revisioning_rules_action_info() {
  $default = array(
    'module' => 'Revisioning',
  );
  return array(
    'revisioning_rules_action_publish_latest' => $default + array(
      'label' => t('Publish the most recent pending revision'),
      'arguments' => array(
        'node' => array(
          'type' => 'node',
          'label' => t('content'),
        ),
      ),
    ),
    'revisioning_rules_action_load_current' => $default + array(
      'label' => t('Load current revision of content'),
      'arguments' => array(
        'node' => array(
          'type' => 'node',
          'label' => t('content'),
        ),
      ),
      'new variables' => array(
        'loaded_current_revision' => array(
          'type' => 'node',
          'label' => t('Loaded current revision of content'),
          'save' => FALSE,
          'label callback' => 'revisioning_rules_loaded_current_label',
        ),
      ),
    ),
  );
}