diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-09-19 12:47:00 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-09-19 12:47:00 +0000 |
commit | 0ca171f2a9e802c150b30390bad218208458d33a (patch) | |
tree | aef053f27578814c6e6a26962f6476cb1a08713e /modules | |
parent | 4e3a3aaed0159d5528c19f68ea238e69a5b62ba5 (diff) | |
download | brdo-0ca171f2a9e802c150b30390bad218208458d33a.tar.gz brdo-0ca171f2a9e802c150b30390bad218208458d33a.tar.bz2 |
- Adding menu callbacks to taxonomy admin. Before this patch, some admin pages only showed tabs and the wrong title.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/taxonomy.module | 22 | ||||
-rw-r--r-- | modules/taxonomy/taxonomy.module | 22 |
2 files changed, 44 insertions, 0 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module index 0b20db1e4..1e14e7adf 100644 --- a/modules/taxonomy.module +++ b/modules/taxonomy.module @@ -54,13 +54,35 @@ function taxonomy_menu($may_cache) { $items[] = array('path' => 'admin/taxonomy', 'title' => t('categories'), 'callback' => 'taxonomy_admin', 'access' => user_access('administer taxonomy')); + $items[] = array('path' => 'admin/taxonomy/list', 'title' => t('list'), 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); + $items[] = array('path' => 'admin/taxonomy/add/vocabulary', 'title' => t('add vocabulary'), 'callback' => 'taxonomy_admin', 'access' => user_access('administer taxonomy'), 'type' => MENU_LOCAL_TASK); + $items[] = array('path' => 'admin/taxonomy/edit/vocabulary', 'title' => t('edit vocabulary'), + 'callback' => 'taxonomy_admin', + 'access' => user_access('administer taxonomy'), + 'type' => MENU_CALLBACK); + + $items[] = array('path' => 'admin/taxonomy/preview/vocabulary', 'title' => t('preview vocabulary'), + 'callback' => 'taxonomy_admin', + 'access' => user_access('administer taxonomy'), + 'type' => MENU_CALLBACK); + + $items[] = array('path' => 'admin/taxonomy/add/term', 'title' => t('add term'), + 'callback' => 'taxonomy_admin', + 'access' => user_access('administer taxonomy'), + 'type' => MENU_CALLBACK); + + $items[] = array('path' => 'admin/taxonomy/edit/term', 'title' => t('edit term'), + 'callback' => 'taxonomy_admin', + 'access' => user_access('administer taxonomy'), + 'type' => MENU_CALLBACK); + $items[] = array('path' => 'taxonomy/term', 'title' => t('taxonomy term'), 'callback' => 'taxonomy_term_page', 'access' => user_access('access content'), diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 0b20db1e4..1e14e7adf 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -54,13 +54,35 @@ function taxonomy_menu($may_cache) { $items[] = array('path' => 'admin/taxonomy', 'title' => t('categories'), 'callback' => 'taxonomy_admin', 'access' => user_access('administer taxonomy')); + $items[] = array('path' => 'admin/taxonomy/list', 'title' => t('list'), 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); + $items[] = array('path' => 'admin/taxonomy/add/vocabulary', 'title' => t('add vocabulary'), 'callback' => 'taxonomy_admin', 'access' => user_access('administer taxonomy'), 'type' => MENU_LOCAL_TASK); + $items[] = array('path' => 'admin/taxonomy/edit/vocabulary', 'title' => t('edit vocabulary'), + 'callback' => 'taxonomy_admin', + 'access' => user_access('administer taxonomy'), + 'type' => MENU_CALLBACK); + + $items[] = array('path' => 'admin/taxonomy/preview/vocabulary', 'title' => t('preview vocabulary'), + 'callback' => 'taxonomy_admin', + 'access' => user_access('administer taxonomy'), + 'type' => MENU_CALLBACK); + + $items[] = array('path' => 'admin/taxonomy/add/term', 'title' => t('add term'), + 'callback' => 'taxonomy_admin', + 'access' => user_access('administer taxonomy'), + 'type' => MENU_CALLBACK); + + $items[] = array('path' => 'admin/taxonomy/edit/term', 'title' => t('edit term'), + 'callback' => 'taxonomy_admin', + 'access' => user_access('administer taxonomy'), + 'type' => MENU_CALLBACK); + $items[] = array('path' => 'taxonomy/term', 'title' => t('taxonomy term'), 'callback' => 'taxonomy_term_page', 'access' => user_access('access content'), |