function revisioning_condition_revision_is in Revisioning 8
Same name and namespace in other branches
- 6.4 revisioning.rules.inc \revisioning_condition_revision_is()
- 6.3 revisioning.rules.inc \revisioning_condition_revision_is()
- 7 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 175 - 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);
}