--- edit_term.module 2008-03-22 22:52:21.000000000 +1100 +++ edit_term.module.ubercart 2008-04-08 12:09:15.000000000 +1000 @@ -118,6 +118,29 @@ function edit_term_menu($may_cache) { 'type' => MENU_LOCAL_TASK ); } + if (arg(0) == 'catalog' && is_numeric(arg(1))) { + // Add an edit tab to gallery pages for easy access + // Needs default view tabs for the advanced tab to show :-/ + $items[] = array( + 'path' => 'catalog/'. arg(1) , + 'type' => MENU_CALLBACK, + ); + $items[] = array( + 'path' => 'catalog/'. arg(1) .'/view', + 'title' => t('View'), + 'weight' => 0, + 'type' => MENU_DEFAULT_LOCAL_TASK + ); + $items[] = array( + 'path' => 'catalog/'. arg(1) .'/edit-term', + 'title' => t('Edit Category'), + 'callback' => 'edit_term_edit_taxonomy_term', + 'callback arguments' => array(arg(1)), + 'access' => node_access('administer taxonomy'), + 'weight' => 1, + 'type' => MENU_LOCAL_TASK + ); + } return $items; }