Index: logintoboggan.install =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/logintoboggan/logintoboggan.install,v retrieving revision 1.14.2.2 diff -u -p -r1.14.2.2 logintoboggan.install --- logintoboggan.install 20 Aug 2009 23:10:42 -0000 1.14.2.2 +++ logintoboggan.install 16 Sep 2009 13:11:03 -0000 @@ -2,6 +2,14 @@ // $Id: logintoboggan.install,v 1.14.2.2 2009/08/20 23:10: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. */ @@ -157,6 +165,15 @@ function logintoboggan_update_6001() { } /** + * change the module weight, to fix some incompatability with other modules + */ +function logintoboggan_update_6002() { + $ret = array(); + $ret[] = update_sql("UPDATE system SET weight = '-2' WHERE name = 'logintoboggan'"); + return $ret; +} + +/** * Implementation of hook_uninstall(). */ function logintoboggan_uninstall() {