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/aggregator.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/aggregator.module')
-rw-r--r-- | modules/aggregator.module | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/aggregator.module b/modules/aggregator.module index 8d3f0d6fd..7a8983c78 100644 --- a/modules/aggregator.module +++ b/modules/aggregator.module @@ -129,7 +129,8 @@ function aggregator_menu() { 'callback' => 'aggregator_admin_refresh_feed', 'access' => $edit, 'type' => MENU_CALLBACK); - // Tabs: + $items[] = array('path' => 'admin/aggregator/list', 'title' => t('list'), + 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'admin/aggregator/add/feed', 'title' => t('add feed'), 'callback' => 'aggregator_admin_edit_feed', 'access' => $edit, 'type' => MENU_LOCAL_TASK); @@ -159,6 +160,8 @@ function aggregator_menu() { while ($feed = db_fetch_object($result)) { $items[] = array('path' => 'aggregator/sources/'. $feed->fid, 'title' => $feed->title, 'callback' => 'aggregator_page_source', 'access' => $view); + $items[] = array('path' => 'aggregator/sources/'. $feed->fid .'/view', 'title' => t('view'), + 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'aggregator/sources/'. $feed->fid .'/categorize', 'title' => t('categorize'), 'callback' => 'aggregator_page_source', 'access' => $edit, 'type' => MENU_LOCAL_TASK); @@ -173,6 +176,8 @@ function aggregator_menu() { while ($category = db_fetch_object($result)) { $items[] = array('path' => 'aggregator/categories/'. $category->cid, 'title' => $category->title, 'callback' => 'aggregator_page_category', 'access' => $view); + $items[] = array('path' => 'aggregator/categories/'. $category->cid .'/view', 'title' => t('view'), + 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'aggregator/categories/'. $category->cid .'/categorize', 'title' => t('categorize'), 'callback' => 'aggregator_page_category', 'access' => $edit, 'type' => MENU_LOCAL_TASK); |