Index: tagadelic.module =================================================================== RCS file: /cvs/drupal/contributions/modules/tagadelic/tagadelic.module,v retrieving revision 1.40.2.2 diff -u -r1.40.2.2 tagadelic.module --- tagadelic.module 14 Aug 2008 18:49:34 -0000 1.40.2.2 +++ tagadelic.module 18 Aug 2008 09:39:14 -0000 @@ -54,7 +54,7 @@ 'page arguments' => array(2), 'access callback' => 'user_access', 'access arguments' => array('access content'), - 'type' => MENU_SUGGESTED_ITEM, + 'type' => MENU_CALLBACK, ); return $items; } @@ -70,6 +70,26 @@ } /** + * Implementation of hook_taxonomy. + * Manage 'Tags in voc_name' menu item. + */ +function tagadelic_taxonomy($op, $type, $array = NULL) { + if ($type == 'vocabulary') { + switch ($op) { + case 'insert': + menu_link_maintain('tagadelic', 'insert', 'tagadelic/chunk/'. $array['vid'], t('Tags in '). $array['name']); + break; + case 'update': + menu_link_maintain('tagadelic', 'update', 'tagadelic/chunk/'. $array['vid'], t('Tags in '). $array['name']); + break; + case 'delete': + menu_link_maintain('tagadelic', 'delete', 'tagadelic/chunk/'. $array['vid'], t('Tags in '). $array['name']); + break; + } + } +} + +/** * Menu callback. Admin setting page for tagadelic. */ function tagadelic_settings() {