function workbench_moderation_node_current_view in Workbench Moderation 7.3
Same name and namespace in other branches
- 7 workbench_moderation.node.inc \workbench_moderation_node_current_view()
Redirects the user to the current revision of the node.
This page will deliver either the 'draft' page or the regular node view page.
Parameters
$node: The node being acted upon.
1 string reference to 'workbench_moderation_node_current_view'
- workbench_moderation_menu in ./
workbench_moderation.module - Implements hook_menu().
File
- ./
workbench_moderation.node.inc, line 16 - Provides node functions for Workbench Moderation.
Code
function workbench_moderation_node_current_view($node) {
if (_workbench_moderation_access_current_draft($node)) {
drupal_goto('node/' . $node->nid . '/draft');
}
drupal_goto('node/' . $node->nid);
}