You are here

function outline_designer_og_menu in Outline Designer 7

Same name and namespace in other branches
  1. 6.2 modules/outline_designer_og/outline_designer_og.module \outline_designer_og_menu()
  2. 6 outline_designer_og/outline_designer_og.module \outline_designer_og_menu()

Implements hook_menu().

2 string references to 'outline_designer_og_menu'
outline_child_pages_access_link in outline_child_pages/outline_child_pages.module
Check that node has child pages and that proper permission are there for the menu tab
outline_child_pages_node_access in outline_child_pages/outline_child_pages.module
Check that node has child pages and that proper permission are there for the menu tab

File

outline_designer_og/outline_designer_og.module, line 14

Code

function outline_designer_og_menu() {
  $items['node/%node/outline_designer'] = array(
    'title' => 'Edit books',
    'page callback' => 'outline_designer_og_books',
    'page arguments' => array(
      1,
    ),
    'access callback' => '_outline_designer_og_books_access',
    'access arguments' => array(
      1,
    ),
    'weight' => 9,
    'type' => MENU_LOCAL_TASK,
  );
  $items['outline_designer/book/%node'] = array(
    'title' => 'Re-order book pages and change titles',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'book_admin_edit',
      2,
    ),
    'access callback' => '_outline_designer_og_book_access',
    'access arguments' => array(
      2,
    ),
    'type' => MENU_CALLBACK,
    'file' => 'book.admin.inc',
    'file path' => drupal_get_path('module', 'book'),
  );
  $items['outline_designer/og_ajax'] = array(
    'access callback' => '_outline_designer_og_ajax_access',
    'page callback' => '_outline_designer_ajax',
    'page arguments' => array(
      2,
      3,
      4,
      5,
      6,
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}