You are here

function workflow_menu in Workflow 6.2

Same name and namespace in other branches
  1. 5.2 workflow.module \workflow_menu()
  2. 5 workflow.module \workflow_menu()
  3. 6 workflow.module \workflow_menu()
  4. 7 workflow.module \workflow_menu()

Implementation of hook_menu().

File

./workflow.module, line 22
Support workflows made up of arbitrary states.

Code

function workflow_menu() {
  $items['node/%node/workflow'] = array(
    'title' => 'Workflow',
    'type' => MENU_LOCAL_TASK,
    'access callback' => 'workflow_node_tab_access',
    'access arguments' => array(
      1,
    ),
    'page callback' => 'workflow_tab_page',
    'page arguments' => array(
      1,
    ),
    'file' => 'workflow.pages.inc',
    'weight' => 2,
  );
  return $items;
}