You are here

function state_flow_menu in State Machine 6

Same name and namespace in other branches
  1. 7.3 modules/state_flow/state_flow.module \state_flow_menu()
  2. 7 modules/state_flow/state_flow.module \state_flow_menu()
  3. 7.2 modules/state_flow/state_flow.module \state_flow_menu()

Implementation of hook_menu().

File

modules/state_flow/state_flow.module, line 11
A base implementation of the state machine class and its relationship to revisions

Code

function state_flow_menu() {
  $items = array();
  $items['node/%node/events'] = array(
    'title' => 'Events',
    'description' => 'The available events',
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'state_flow_events',
    'page arguments' => array(
      1,
    ),
    'access callback' => TRUE,
    'weight' => 10,
  );
  return $items;
}