You are here

function book_helper_menu in Book helper 7

Same name and namespace in other branches
  1. 6 book_helper.module \book_helper_menu()

Implements hook_menu().

File

./book_helper.module, line 71
Improves Drupal's core book module's functionality.

Code

function book_helper_menu() {

  // Adds an order tab to book's main node.
  $items['node/%node/order'] = array(
    'title' => 'Order',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'book_helper_admin_edit',
      1,
    ),
    'access callback' => '_book_helper_access',
    'access arguments' => array(
      1,
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
    'file' => 'book_helper.admin.inc',
  );
  return $items;
}