You are here

function revisioning_node_has_pending in Revisioning 7

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

Condition: check for pending revisions of the node.

File

./revisioning.rules.inc, line 188
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 || _revisioning_get_number_of_pending_revisions($node->nid) > 0;
}