You are here

function revisioning_condition_revision_is in Revisioning 7

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

Condition: check revision state.

1 string reference to 'revisioning_condition_revision_is'
revisioning_rules_condition_info in ./revisioning.rules.inc
Implements hook_rules_condition_info().

File

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

Code

function revisioning_condition_revision_is($node, $settings) {
  revisioning_set_node_revision_info($node);

  // Should we return FALSE here if $node->revision_moderation is not set?
  $type = _revisioning_revision_is($node);
  return in_array($type, $settings);
}