function _diff_get_next_vid in Diff 6
Same name and namespace in other branches
- 5.2 diff.module \_diff_get_next_vid()
- 5 diff.module \_diff_get_next_vid()
- 6.2 diff.pages.inc \_diff_get_next_vid()
- 7.3 diff.pages.inc \_diff_get_next_vid()
- 7.2 diff.pages.inc \_diff_get_next_vid()
Get the entry in the revisions list after $vid. Returns false if $vid is the last entry.
Parameters
$node_revisions: Array of node revision IDs in descending order.
$vid: Version ID to look for.
1 call to _diff_get_next_vid()
- diff_diffs_show in ./
diff.module - Create output string for a comparison of 'node' between versions 'old_vid' and 'new_vid'.
File
- ./
diff.module, line 416 - Provides functionality to show a diff between two node revisions.
Code
function _diff_get_next_vid(&$node_revisions, $vid) {
$previous = NULL;
foreach ($node_revisions as $revision) {
if ($revision->vid == $vid) {
return $previous ? $previous->vid : false;
}
$previous = $revision;
}
return false;
}