Index: twitter.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/twitter/twitter.install,v
retrieving revision 1.2
diff -u -p -r1.2 twitter.install
--- twitter.install	18 Jun 2008 03:34:33 -0000	1.2
+++ twitter.install	12 Aug 2008 23:28:04 -0000
@@ -148,6 +148,9 @@ function twitter_schema() {
 function twitter_install() {
   // Create tables.
   drupal_install_schema('twitter');
+
+  // Set the weight to 3, making it heaving than e.g. Pathauto
+  db_query("UPDATE {system} SET weight = 3 WHERE name = 'twitter'");
 }
 
 /**
@@ -185,6 +188,15 @@ function twitter_update_6001() {
   return $ret;
 }
 
+/**
+ * Set the weight a little heavier to allow Pathauto and other modules to do their work.
+ */
+function twitter_update_6003() {
+  $ret = array();
+  $ret[] = update_sql("UPDATE {system} SET weight = 3 WHERE name = 'twitter'");
+  return $ret;
+}
+
 function twitter_uninstall() {
   // Remove tables.
   drupal_uninstall_schema('twitter');
