? uc_taxes_module_weight_install.patch
Index: uc_taxes/uc_taxes.install
===================================================================
RCS file: /cvs/drupal/contributions/modules/ubercart/uc_taxes/uc_taxes.install,v
retrieving revision 1.10.2.8
diff -w -u -p -r1.10.2.8 uc_taxes.install
--- uc_taxes/uc_taxes.install	21 Jul 2009 14:37:19 -0000	1.10.2.8
+++ uc_taxes/uc_taxes.install	13 Oct 2009 15:04:37 -0000
@@ -65,6 +65,8 @@ function uc_taxes_schema() {
  */
 function uc_taxes_install() {
   drupal_install_schema('uc_taxes');
+  // Sets the module's weight to 10 to make sure it is run last of other ubercart modules.
+  db_query("UPDATE {system} SET weight = 10 WHERE name = 'uc_taxes'");
 }
 
 /**
@@ -279,3 +281,14 @@ function uc_taxes_update_6002() {
 
   return $ret;
 }
+
+/**
+ * Sets the module's weight to 10 to make sure it is run last of other ubercart modules.
+ */
+function uc_taxes_update_6003() {
+  $ret = array();
+
+  $ret[] = update_sql("UPDATE {system} SET weight = 10 WHERE name = 'uc_taxes'");
+
+  return $ret;
+}
\ No newline at end of file
