summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-07-29 03:49:16 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-07-29 03:49:16 +0000
commit515f7b41f16af341b345f553ec5409f973edd581 (patch)
treef775792604f1033d61912267a4775b4613cd7a4c /modules
parentf0c5a2860ad25cc220ef67e59e8eee0ea710a805 (diff)
downloadbrdo-515f7b41f16af341b345f553ec5409f973edd581.tar.gz
brdo-515f7b41f16af341b345f553ec5409f973edd581.tar.bz2
- #27707: Use local tasks for book administration
Diffstat (limited to 'modules')
-rw-r--r--modules/book.module9
-rw-r--r--modules/book/book.module9
2 files changed, 14 insertions, 4 deletions
diff --git a/modules/book.module b/modules/book.module
index cbe8f1635..bdc781903 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -91,12 +91,17 @@ function book_menu($may_cache) {
'title' => t('books'),
'callback' => 'book_admin',
'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(
'path' => 'admin/node/book/orphan',
'title' => t('orphan pages'),
'callback' => 'book_admin_orphan',
- 'access' => user_access('administer nodes'),
+ 'type' => MENU_LOCAL_TASK,
'weight' => 8);
$items[] = array('path' => 'book', 'title' => t('books'),
'callback' => 'book_render',
diff --git a/modules/book/book.module b/modules/book/book.module
index cbe8f1635..bdc781903 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -91,12 +91,17 @@ function book_menu($may_cache) {
'title' => t('books'),
'callback' => 'book_admin',
'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(
'path' => 'admin/node/book/orphan',
'title' => t('orphan pages'),
'callback' => 'book_admin_orphan',
- 'access' => user_access('administer nodes'),
+ 'type' => MENU_LOCAL_TASK,
'weight' => 8);
$items[] = array('path' => 'book', 'title' => t('books'),
'callback' => 'book_render',