function _revisioning_get_number_of_revisions_newer_than in Revisioning 6.4
Same name and namespace in other branches
- 8 revisioning_api.inc \_revisioning_get_number_of_revisions_newer_than()
- 6.3 revisioning_api.inc \_revisioning_get_number_of_revisions_newer_than()
- 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()
File
- ./
revisioning_api.inc, line 323 - 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));
}