function _revisioning_edit in Revisioning 8
Same name and namespace in other branches
- 6.4 revisioning.module \_revisioning_edit()
- 6.3 revisioning.module \_revisioning_edit()
- 7 revisioning.module \_revisioning_edit()
Callback for the primary Edit tab.
This is the same callback as used in core, except that in core current and latest revisions are always the same.
1 string reference to '_revisioning_edit'
- revisioning_menu_alter in ./
revisioning.module - Implements hook_menu_alter().
File
- ./
revisioning.module, line 1073 - 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_edit($node) {
if (_revisioning_load_op($node, 'edit') == REVISIONING_LOAD_LATEST) {
$vid_to_load = revisioning_get_latest_revision_id($node->nid);
$node = node_load($node->nid, $vid_to_load);
}
_revisioning_set_custom_theme_if_necessary();
// This is the callback used by node.module for node/%node/edit
return node_page_edit($node);
}