function revisioning_node_has_pending in Revisioning 8
Same name and namespace in other branches
- 6.4 revisioning.rules.inc \revisioning_node_has_pending()
- 6.3 revisioning.rules.inc \revisioning_node_has_pending()
- 7 revisioning.rules.inc \revisioning_node_has_pending()
Condition: check for pending revisions of the node.
File
- ./
revisioning.rules.inc, line 167 - Rules integration for Revisioning module.
Code
function revisioning_node_has_pending($node, $settings) {
revisioning_set_node_revision_info($node);
return $node->revision_moderation && $node->num_revisions == 1 && !$node->status || ($num_pending = _revisioning_get_number_of_pending_revisions($node->nid)) > 0;
}