diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-07-10 15:51:48 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-07-10 15:51:48 +0000 |
commit | ac5b5616c0016ef781c122243a6b7fe8fbf98114 (patch) | |
tree | bc3db7f2a495240da80e02ba33fcd2ffbbf6013c /modules/node/node.module | |
parent | e21f238ad7fe3db36419443e4ecafd6a67974576 (diff) | |
download | brdo-ac5b5616c0016ef781c122243a6b7fe8fbf98114.tar.gz brdo-ac5b5616c0016ef781c122243a6b7fe8fbf98114.tar.bz2 |
- More tab-improvements by JonBob: improved support for the default tabs!
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index fd188d34e..af41ab7a2 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -641,12 +641,18 @@ function node_menu() { $items[] = array('path' => 'admin/node', 'title' => t('content'), 'callback' => 'node_admin', 'access' => user_access('administer nodes')); - - // Tabs: + $items[] = array('path' => 'admin/node/overview', 'title' => t('list'), + 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'admin/node/configure', 'title' => t('configure'), 'callback' => 'node_configure', 'access' => user_access('administer nodes'), 'type' => MENU_LOCAL_TASK); + $items[] = array('path' => 'admin/node/configure/settings', 'title' => t('settings'), + 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); + $items[] = array('path' => 'admin/node/configure/defaults', 'title' => t('default workflow'), + 'callback' => 'node_default_settings', + 'access' => user_access('administer nodes'), + 'type' => MENU_LOCAL_TASK); if (module_exist('search')) { $items[] = array('path' => 'admin/node/search', 'title' => t('search'), 'callback' => 'node_admin', @@ -654,16 +660,6 @@ function node_menu() { 'type' => MENU_LOCAL_TASK); } - // Subtabs: - $items[] = array('path' => 'admin/node/configure/settings', 'title' => t('settings'), - 'callback' => 'node_configure', - 'access' => user_access('administer nodes'), - 'type' => MENU_LOCAL_SUBTASK); - $items[] = array('path' => 'admin/node/configure/defaults', 'title' => t('default workflow'), - 'callback' => 'node_default_settings', - 'access' => user_access('administer nodes'), - 'type' => MENU_LOCAL_SUBTASK); - $items[] = array('path' => 'node', 'title' => t('content'), 'callback' => 'node_page', 'access' => user_access('access content'), @@ -681,6 +677,8 @@ function node_menu() { 'callback' => 'node_page', 'access' => user_access('access content'), 'type' => MENU_CALLBACK); + $items[] = array('path' => 'node/'. arg(1) .'/view', 'title' => t('view'), + 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'node/'. arg(1) .'/edit', 'title' => t('edit'), 'callback' => 'node_page', 'access' => node_access('update', $node), |