You are here

function workbench_moderation_menu in Workbench Moderation 7.2

Same name and namespace in other branches
  1. 7.3 workbench_moderation.module \workbench_moderation_menu()
  2. 7 workbench_moderation.module \workbench_moderation_menu()

Implements hook_menu().

File

./workbench_moderation.module, line 18
workbench_moderation.module

Code

function workbench_moderation_menu() {
  $items = array();

  // View the current draft of a node.
  $items["node/%workbench_moderation_node_current_draft/draft"] = array(
    'title' => 'View draft',
    'page callback' => 'workbench_moderation_node_view_draft',
    'page arguments' => array(
      1,
    ),
    'access callback' => '_workbench_moderation_access_current_draft',
    'access arguments' => array(
      1,
    ),
    'file' => 'workbench_moderation.node.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => -9,
    'tab_parent' => 'node/%',
    'tab_root' => 'node/%',
  );
  return $items;
}