function book_made_simple_menu in Book made simple 7.3
Same name and namespace in other branches
- 6.3 book_made_simple.module \book_made_simple_menu()
Implementats hook_menu().
File
- ./
book_made_simple.module, line 44 - Automaticly creats a book and simple creation of child pages. Author: M. Morin
Code
function book_made_simple_menu() {
$items = array();
$items['admin/config/book_made_simple'] = array(
'title' => 'BookMadeSimple',
'description' => 'book_made_simple settings.',
'position' => 'right',
'weight' => -10,
'access arguments' => array(
'access administration pages',
),
);
$items['admin/config/book_made_simple/config'] = array(
'title' => 'BookMadeSimple Configuration.',
'description' => 'Configuration of BookMadeSimple module',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'book_made_simple_settings_form',
),
'access arguments' => array(
'administer site configuration',
),
'weight' => -10,
);
$items['node/%node/reorder'] = array(
'title' => t('Reorder the book'),
'page callback' => 'book_made_simple_reorder',
'page arguments' => array(
1,
),
'access callback' => 'book_made_simple_is_reorder_access',
'access arguments' => array(
1,
),
'type' => MENU_LOCAL_TASK,
'weight' => 2,
);
/*
$items['node/%node/outline'] = array(
'title' => 'Outline',
'page callback' => 'book_outline',
'page arguments' => array(1),
'access callback' => 'book_made_simple_is_outline_access',
'access arguments' => array(1),
//'access arguments' => array("show core Outline tab"),
'type' => MENU_LOCAL_TASK,
'weight' => 10 ,
'file' => 'book.pages.inc',
'file path' => drupal_get_path('module', 'book'),
);
*/
return $items;
}