--- sites/all/modules/taxonomy_menu/taxonomy_menuOLD.inc	2008-09-09 06:54:04.000000000 -0400
+++ sites/all/modules/taxonomy_menu/taxonomy_menu.inc	2009-01-03 11:42:26.000000000 -0500
@@ -24,12 +24,12 @@ function _taxonomy_menu_admin(&$form_sta
 
   // If the Views module is enabled, add some special
   // new features
-//   if (module_exists('views')) {
+   if (module_exists('views')) {
 //     // Add the Views file with more functions
 //     require_once(drupal_get_path('module', 'views') .'/views_cache.inc');
 //
-//     // Add a new options on Categories
-//     $options[TAXONOMY_MENU_VIEW] = t('Views');
+     // Add a new options on Categories
+     $options[TAXONOMY_MENU_VIEW] = t('Views');
 //
 //     // Get the list of User generated views
 //     $views = db_query("SELECT * FROM {view_view}");
@@ -37,11 +37,11 @@ function _taxonomy_menu_admin(&$form_sta
 //       $views_list[$view['name']] = $view['page_title'];
 //     }
 //
-//     // Now get a list of default Views
-//     foreach (_views_get_default_views() as $view => $viewdata) {
-//       $views_list[$view] = $viewdata->name;
-//     }
-//   }
+     // Now get a list of default Views
+     foreach (views_get_all_views() as $view => $viewdata) {
+       $views_list[$view] = $viewdata->name;
+     }
+   }
 
   // If the Taxonomy Default module is enabled, add some special
   // new features
@@ -64,14 +64,14 @@ function _taxonomy_menu_admin(&$form_sta
     );
 
     // In case of View options selected, select Views
-//     if (module_exists('views')) {
-//       $form[$vocab->vid]['taxonomy_menu_show_view_'. $vocab->vid] = array(
-//         '#default_value'  => variable_get('taxonomy_menu_show_view_'. $vocab->vid, ''),
-//         '#options'        => $views_list,
-//         '#title'          => t('Views available'),
-//         '#type'           => 'select'
-//       );
-//     }
+     if (module_exists('views')) {
+       $form[$vocab->vid]['taxonomy_menu_show_view_'. $vocab->vid] = array(
+         '#default_value'  => variable_get('taxonomy_menu_show_view_'. $vocab->vid, ''),
+         '#options'        => $views_list,
+         '#title'          => t('Views available'),
+         '#type'           => 'select'
+       );
+     }
   }
 
   // General options
@@ -316,9 +316,9 @@ function _taxonomy_menu_page() {
       }
 
       // Embed the views output into the page
-      $output = views_build_view('embed',
-        views_get_view(variable_get('taxonomy_menu_show_views_'. $vid, '')),
-        $arguments, FALSE, NULL);
+      $view = views_get_view(variable_get('taxonomy_menu_show_views_'. $vid, ''));	  
+	  $output = $view->execute_display('embed', $arguments);
+
     }
     elseif (variable_get('taxonomy_menu_show_'. $vid, TAXONOMY_MENU_NONE) == TAXONOMY_MENU_DEFAULT_TAX) {
 
