Commit 515f7b41 authored by Steven Wittens's avatar Steven Wittens

- #27707: Use local tasks for book administration

parent f0c5a286
......@@ -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',
......
......@@ -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',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment