- #27707: Use local tasks for book administration
parent
f0c5a2860a
commit
515f7b41f1
|
@ -91,12 +91,17 @@ function book_menu($may_cache) {
|
||||||
'title' => t('books'),
|
'title' => t('books'),
|
||||||
'callback' => 'book_admin',
|
'callback' => 'book_admin',
|
||||||
'access' => user_access('administer nodes'),
|
'access' => user_access('administer nodes'),
|
||||||
'weight' => 4);
|
'type' => MENU_LOCAL_TASK,
|
||||||
|
'weight' => -1);
|
||||||
|
$items[] = array(
|
||||||
|
'path' => 'admin/node/book/list',
|
||||||
|
'title' => t('list'),
|
||||||
|
'type' => MENU_DEFAULT_LOCAL_TASK);
|
||||||
$items[] = array(
|
$items[] = array(
|
||||||
'path' => 'admin/node/book/orphan',
|
'path' => 'admin/node/book/orphan',
|
||||||
'title' => t('orphan pages'),
|
'title' => t('orphan pages'),
|
||||||
'callback' => 'book_admin_orphan',
|
'callback' => 'book_admin_orphan',
|
||||||
'access' => user_access('administer nodes'),
|
'type' => MENU_LOCAL_TASK,
|
||||||
'weight' => 8);
|
'weight' => 8);
|
||||||
$items[] = array('path' => 'book', 'title' => t('books'),
|
$items[] = array('path' => 'book', 'title' => t('books'),
|
||||||
'callback' => 'book_render',
|
'callback' => 'book_render',
|
||||||
|
|
|
@ -91,12 +91,17 @@ function book_menu($may_cache) {
|
||||||
'title' => t('books'),
|
'title' => t('books'),
|
||||||
'callback' => 'book_admin',
|
'callback' => 'book_admin',
|
||||||
'access' => user_access('administer nodes'),
|
'access' => user_access('administer nodes'),
|
||||||
'weight' => 4);
|
'type' => MENU_LOCAL_TASK,
|
||||||
|
'weight' => -1);
|
||||||
|
$items[] = array(
|
||||||
|
'path' => 'admin/node/book/list',
|
||||||
|
'title' => t('list'),
|
||||||
|
'type' => MENU_DEFAULT_LOCAL_TASK);
|
||||||
$items[] = array(
|
$items[] = array(
|
||||||
'path' => 'admin/node/book/orphan',
|
'path' => 'admin/node/book/orphan',
|
||||||
'title' => t('orphan pages'),
|
'title' => t('orphan pages'),
|
||||||
'callback' => 'book_admin_orphan',
|
'callback' => 'book_admin_orphan',
|
||||||
'access' => user_access('administer nodes'),
|
'type' => MENU_LOCAL_TASK,
|
||||||
'weight' => 8);
|
'weight' => 8);
|
||||||
$items[] = array('path' => 'book', 'title' => t('books'),
|
$items[] = array('path' => 'book', 'title' => t('books'),
|
||||||
'callback' => 'book_render',
|
'callback' => 'book_render',
|
||||||
|
|
Loading…
Reference in New Issue