You are here

function _number_of_pending_revisions in Revisioning 6

Return a count of the number of revisions newer than the current revision.

Parameters

$nid: The id of the node.

Return value

integer

1 call to _number_of_pending_revisions()
revisioning_revert_confirm in ./revisioning.module
Return a confirmation page prior to reverting to an older revision.

File

./revisioning.module, line 491

Code

function _number_of_pending_revisions($nid) {
  return db_result(db_query("SELECT COUNT(*) FROM {node} n INNER JOIN {node_revisions} r ON n.nid=r.nid WHERE (r.vid>n.vid AND n.nid=%d)", $nid));
}