function _revisioning_edit in Revisioning 6.3
Same name and namespace in other branches
- 8 revisioning.module \_revisioning_edit()
- 6.4 revisioning.module \_revisioning_edit()
- 7 revisioning.module \_revisioning_edit()
Callback for the primary Edit tab.
1 string reference to '_revisioning_edit'
- revisioning_menu_alter in ./
revisioning.module - Implementation of hook_menu_alter().
File
- ./
revisioning.module, line 853 - 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_edit($node) {
// Use the admin theme if the user specified this for node edit pages
if (variable_get('node_admin_theme', FALSE)) {
global $theme, $custom_theme;
$custom_theme = variable_get('admin_theme', $theme);
}
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);
}
// Following is the same as node_page_edit().
drupal_set_title(check_plain($node->title));
return drupal_get_form($node->type . '_node_form', $node);
}