? foo.patch
? uc_product-features-880770-3.patch
Index: uc_product/uc_product.features.inc
===================================================================
RCS file: uc_product/uc_product.features.inc
diff -N uc_product/uc_product.features.inc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ uc_product/uc_product.features.inc	16 Sep 2010 19:33:42 -0000
@@ -0,0 +1,39 @@
+<?php
+// $Id$
+
+/**
+ * @file
+ * Export product content types.
+ *
+ * @todo: Export product classes.
+ */
+
+/**
+ * Implementation of hook_features_export_options().
+ */
+function uc_product_features_export_options() {
+  return uc_product_type_names();
+}
+
+/**
+ * Implementation of hook_features_export().
+ */
+function uc_product_features_export($data, &$export, $module_name = 'uc_product') {
+  return node_features_export($data, $export, $module_name);
+}
+
+/**
+ * Implementation of hook_features_export_render().
+ */
+function uc_product_features_export_render($module, $data, $export = NULL) {
+  $output = node_features_export_render($module, $data, $export);
+  return array('node_info' => $output['node_info']);
+}
+
+/**
+ * Implementation of hook_features_revert().
+ */
+function uc_product_features_revert($module = 'uc_product') {
+  node_features_revert($module);
+}
+
Index: uc_product/uc_product.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ubercart/uc_product/uc_product.module,v
retrieving revision 1.14.2.43
diff -u -p -r1.14.2.43 uc_product.module
--- uc_product/uc_product.module	16 Jul 2010 15:51:35 -0000	1.14.2.43
+++ uc_product/uc_product.module	16 Sep 2010 19:33:42 -0000
@@ -2114,3 +2114,19 @@ function uc_product_views_api() {
     'path' => drupal_get_path('module', 'uc_product') .'/views',
   );
 }
+
+/**
+ * Implementation of hook_features_api().
+ */
+function uc_product_features_api() {
+  return array(
+    'uc_product' => array(
+      'name' => t('Ubercart product types'),
+      'feature_source' => TRUE,
+      'default_hook' => 'uc_product_node_info',
+      'default_file' => FEATURES_DEFAULTS_INCLUDED,
+      'file' => drupal_get_path('module', 'uc_product') .'/uc_product.features.inc',
+    ),
+  );
+}
+
