function _revisioning_edit_revision in Revisioning 6.4
Same name and namespace in other branches
- 8 revisioning.module \_revisioning_edit_revision()
- 6.3 revisioning.module \_revisioning_edit_revision()
- 7 revisioning.module \_revisioning_edit_revision()
Callback to edit a particular revision.
1 string reference to '_revisioning_edit_revision'
- revisioning_menu in ./
revisioning.module - Implementation of hook_menu().
File
- ./
revisioning.module, line 830 - 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_revision($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);
}
drupal_set_title(check_plain($node->title));
return drupal_get_form($node->type . '_node_form', $node);
}