Index: logintoboggan.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/logintoboggan/logintoboggan.install,v
retrieving revision 1.10
diff -u -p -r1.10 logintoboggan.install
--- logintoboggan.install	11 Oct 2006 15:49:42 -0000	1.10
+++ logintoboggan.install	16 Sep 2009 13:10:46 -0000
@@ -2,6 +2,14 @@
 // $Id: logintoboggan.install,v 1.10 2006/10/11 15:49:42 thehunmonkgroup Exp $
 
 /**
+ * Implementation of hook_install().
+ */
+function logintoboggan_install() {
+  // set the weight
+  db_query("UPDATE system SET weight = '-2' WHERE name = 'logintoboggan'");
+}
+
+/**
  * Implementation of hook_update_1().  This is a placeholder in case table
  * installation is ever necessary for the module.
  */
@@ -105,6 +113,15 @@ function logintoboggan_update_6() {
 }
 
 /**
+ * change the module weight, to fix some incompatability with other modules
+ */
+function logintoboggan_update_7() {
+  $ret = array();
+  $ret[] = update_sql("UPDATE system SET weight = '-2' WHERE name = 'logintoboggan'");
+  return $ret;
+}
+
+/**
  * Implementation of hook_uninstall().
  */
 function logintoboggan_uninstall() {
