You are here

function revisioning_rules_condition_info in Revisioning 6.4

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

File

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

Code

function revisioning_rules_condition_info() {
  return array(
    'revisioning_node_has_pending' => array(
      'label' => t('Content has pending revision'),
      'arguments' => array(
        'node' => array(
          'type' => 'node',
          'label' => t('Content'),
        ),
      ),
      'help' => t('Evaluates to TRUE, if the node has one or more pending revision'),
      'module' => 'Revisioning',
    ),
    'revisioning_condition_revision_is' => array(
      'label' => t('Content revision is'),
      'arguments' => array(
        'node' => array(
          'type' => 'node',
          'label' => t('Content'),
        ),
      ),
      'help' => t('Evaluates to TRUE, if revision is one of selected types'),
      'module' => 'Revisioning',
    ),
  );
}