function _revisioning_view in Revisioning 7
Same name and namespace in other branches
- 8 revisioning.module \_revisioning_view()
- 6.4 revisioning.module \_revisioning_view()
- 6.3 revisioning.module \_revisioning_view()
Menu callback for the primary View tab.
This is the same callback as used in core, except that in core current and latest revisions are always the same.
2 string references to '_revisioning_view'
- revisioning_menu_alter in ./
revisioning.module - Implements hook_menu_alter().
- revisioning_page_manager_override in ./
revisioning.module - Implements hook_page_manager_override().
File
- ./
revisioning.module, line 1119 - Allows content to be updated and reviewed before submitting it for publication, while the current live revision remains unchanged and publicly visible until the changes have been reviewed and found fit for publication by a moderator.
Code
function _revisioning_view($node) {
if (_revisioning_load_op($node, 'view') == REVISIONING_LOAD_LATEST) {
$vid_to_load = revisioning_get_latest_revision_id($node->nid);
$node = node_load($node->nid, $vid_to_load);
}
// This is the callback used by node.module for node/%node & node/%node/view
return node_page_view($node);
}