Index: uc_cart_widget.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uc_cart_widget/uc_cart_widget.info,v
retrieving revision 1.1
diff -u -p -r1.1 uc_cart_widget.info
--- uc_cart_widget.info	2 May 2008 21:12:36 -0000	1.1
+++ uc_cart_widget.info	30 Jan 2010 08:24:50 -0000
@@ -1,6 +1,7 @@
-; $Id: uc_cart_widget.info,v 1.1 2008/05/02 21:12:36 islandusurper Exp $
+; $Id$
 name = CCK Ubercart Widget
 description = Defines a field type for displaying an Ubercart "Add to Cart" form.
-dependencies = content uc_cart
+dependencies[] = content
+dependencies[] = uc_cart
 package = Ubercart - extra
-
+core = 6.x
\ No newline at end of file
Index: uc_cart_widget.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uc_cart_widget/uc_cart_widget.module,v
retrieving revision 1.1
diff -u -p -r1.1 uc_cart_widget.module
--- uc_cart_widget.module	2 May 2008 21:12:36 -0000	1.1
+++ uc_cart_widget.module	30 Jan 2010 08:24:50 -0000
@@ -13,11 +13,10 @@
 function uc_cart_widget_menu($may_cache) {
   $items = array();
 
-  if ($may_cache) {
-    $items[] = array('path' => 'uc_cart_widget/autocomplete', 'title' => t('node reference autocomplete'),
-      'callback' => 'uc_cart_widget_autocomplete', 'access' => user_access('access content'), 'type' => MENU_CALLBACK);
-  }
-
+  $items['uc_cart_widget/autocomplete'] = array(
+    'title' => 'node reference autocomplete',
+    'callback' => 'uc_cart_widget_autocomplete', 'access' => user_access('access content'), 'type' => MENU_CALLBACK
+    );
   return $items;
 }
 
@@ -426,7 +425,7 @@ function _uc_cart_widget_potential_refer
     $result = db_query(db_rewrite_sql("SELECT n.nid, n.title AS node_title, n.type AS node_type FROM {node} n WHERE ". $related_clause ." ORDER BY n.title, n.type"), $args);
   }
 
-  if (db_num_rows($result) == 0) {
+  if (db_result($result) == 0) {
     return array();
   }
 
@@ -475,6 +474,14 @@ function _uc_cart_widget_item($field, $i
   return $output;
 }
 
+function hook_theme($existing, $type, $theme, $path) {
+  return array(
+  'uc_cart_widget_item_advanced' => array(
+    'arguments' => array('item' => NULL, 'view' => NULL)
+     )
+   );
+}
+
 function theme_uc_cart_widget_item_advanced($item, $view) {
   $fields = _views_get_fields();
   $item_fields = array();
