function _revisioning_view in Revisioning 6.3
Same name and namespace in other branches
- 8 revisioning.module \_revisioning_view()
- 6.4 revisioning.module \_revisioning_view()
- 7 revisioning.module \_revisioning_view()
Menu callback for the primary View tab.
1 string reference to '_revisioning_view'
- revisioning_menu_alter in ./
revisioning.module - Implementation of hook_menu_alter().
File
- ./
revisioning.module, line 837 - Allows the creation and modification of pre-published as well as live content while the current revision remains unchanged and publicly visible until the changes have been reviewed 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);
}
// In node.module, node_page_view() is used to display the current, while
// node_show() is used for any other revision. The difference between the
// two is that node_page_view() surpresses the message that tells us we're
// viewing a revision. That's what we use here because we have our own
// configurable message.
return node_page_view($node);
}