function _number_of_revisions_newer_than in Revisioning 6
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 _number_of_revisions_newer_than()
- revisioning_nodeapi in ./
revisioning.module - Implementation of hook_nodeapi().
File
- ./
revisioning.module, line 479
Code
function _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));
}