Index: tax_menu.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/tax_menu/tax_menu.admin.inc,v
retrieving revision 1.5
diff -u -r1.5 tax_menu.admin.inc
--- tax_menu.admin.inc	9 Feb 2010 07:58:49 -0000	1.5
+++ tax_menu.admin.inc	5 May 2010 15:17:51 -0000
@@ -48,4 +48,6 @@
       tax_menu_remove_menu($vid);
     }
   }
+	
+	variable_set('tax-menu-vocabs', $menu_vocabs);
 }
Index: tax_menu.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/tax_menu/tax_menu.module,v
retrieving revision 1.5
diff -u -r1.5 tax_menu.module
--- tax_menu.module	14 Feb 2010 21:26:45 -0000	1.5
+++ tax_menu.module	5 May 2010 15:18:24 -0000
@@ -62,7 +62,7 @@
   if (!$silent){
     drupal_set_message(t('Custom menu for !vocab has been rebuilt.', array('!vocab' => $vocab->name))); 
   }
-  menu_cache_clear('tax_menu_'.$vid);
+  menu_cache_clear('tax-menu-'.$vid);
   _menu_clear_page_cache();
   
   return;
@@ -82,14 +82,14 @@
   }
   
   // Remove menu items and menu
-  db_query("DELETE FROM {menu_links} WHERE menu_name = '%s'", 'tax_menu_'.$vid);
-  db_query("DELETE FROM {menu_custom} WHERE menu_name = '%s'", 'tax_menu_'.$vid);
+  db_query("DELETE FROM {menu_links} WHERE menu_name = '%s'", 'tax-menu-'.$vid);
+  db_query("DELETE FROM {menu_custom} WHERE menu_name = '%s'", 'tax-menu-'.$vid);
   
   if ($message){
     $vocab = taxonomy_vocabulary_load($vid);
     drupal_set_message(t('Custom menu for !vocab has been removed', array('!vocab' => $vocab->name)));
     // TODO this is not the right place for this cache clear
-    menu_cache_clear('tax_menu_'.$vid);
+    menu_cache_clear('tax-menu-'.$vid);
     _menu_clear_page_cache();
   }
   
@@ -116,7 +116,7 @@
   $vocab = taxonomy_vocabulary_load($vid);
   
   // create the menu for the vocab
-  db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')", 'tax_menu_'.$vocab->vid, $vocab->name, $vocab->description);
+  db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')", 'tax-menu-'.$vocab->vid, $vocab->name, $vocab->description);
   
   // create the menu items for the vocab
   $parents = array();
@@ -140,7 +140,7 @@
       $item = array(
         'link_title' => t($name),
         'link_path' => 'taxonomy/term/'.$term->tid,
-        'menu_name' => 'tax_menu_'.$term->vid,
+        'menu_name' => 'tax-menu-'.$term->vid,
         'module' => 'tax_menu',
         'weight' => $term->weight,
         'plid' => $parent_menu,
@@ -156,7 +156,7 @@
   if ($message){
     drupal_set_message(t('Custom menu for !vocab has been created', array('!vocab' => $vocab->name)));
     // TODO this is not the right place for this cache clear
-    // menu_cache_clear('tax_menu_'.$vid);
+    // menu_cache_clear('tax-menu-'.$vid);
     // _menu_clear_page_cache();
   }
   

