Index: modules/trigger/trigger.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/trigger/trigger.install,v
retrieving revision 1.16
diff -u -p -r1.16 trigger.install
--- modules/trigger/trigger.install	4 Dec 2009 16:49:47 -0000	1.16
+++ modules/trigger/trigger.install	25 Mar 2010 14:57:24 -0000
@@ -48,6 +48,12 @@ function trigger_schema() {
 function trigger_install() {
   // Do initial synchronization of actions in code and the database.
   actions_synchronize();
+
+  // Trigger should go last to allow other modules make their changes.
+  db_update('system')
+    ->fields(array('weight' => 5))
+    ->condition('name', 'trigger')
+    ->execute();
 }
 
 /**
@@ -66,3 +72,15 @@ function trigger_update_7000() {
   }
   db_drop_field('trigger_assignments', 'op');
 }
+
+/**
+ * Set system.weight to a high value for trigger module.
+ *
+ * Trigger should go last to allow other modules make their changes.
+ */
+function trigger_update_7001() {
+  db_update('system')
+    ->fields(array('weight' => 5))
+    ->condition('name', 'trigger')
+    ->execute();
+}
