From ac5b5616c0016ef781c122243a6b7fe8fbf98114 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 10 Jul 2004 15:51:48 +0000 Subject: - More tab-improvements by JonBob: improved support for the default tabs! --- modules/node.module | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'modules/node.module') diff --git a/modules/node.module b/modules/node.module index fd188d34e..af41ab7a2 100644 --- a/modules/node.module +++ b/modules/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), -- cgit v1.2.3