You are here

function _revisioning_get_number_of_revisions_newer_than in Revisioning 6.3

Same name and namespace in other branches
  1. 8 revisioning_api.inc \_revisioning_get_number_of_revisions_newer_than()
  2. 6.4 revisioning_api.inc \_revisioning_get_number_of_revisions_newer_than()
  3. 7 revisioning_api.inc \_revisioning_get_number_of_revisions_newer_than()

Return a count of the number of revisions newer than the supplied vid.

Parameters

$vid: The reference vid.

$nid: The id of the node.

Return value

integer

1 call to _revisioning_get_number_of_revisions_newer_than()
_revisioning_prepare_msg in ./revisioning.module

File

./revisioning_api.inc, line 403
API functions of Revisioning module

Code

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