=== modified file 'sites/all/modules/jammer/jammer.install'
--- sites/all/modules/jammer/jammer.install	2010-04-11 00:34:25 +0000
+++ sites/all/modules/jammer/jammer.install	2010-08-18 16:34:27 +0000
@@ -6,6 +6,17 @@
  * @file
  * Jammer install file
  */
+
+/**
+ * Implementation of hook_install().
+ */
+function jammer_install() {
+  // Play nice with pathauto, which sets the weight to 1.
+  // pathauto_form_alter() should precede jammer_form_alter(), since
+  // pathauto_form_alter() adds to $form['path'], which we could unset.
+  db_query("UPDATE {system} SET weight = 2 WHERE name = 'jammer'");
+}
+
 /**
  * Implementation of hook_uninstall().
  */
@@ -23,3 +34,11 @@
   variable_del('jammer_user_delete_hide_button');
 }
 
+/**
+ * Set the weight a little heavier to make pathauto_form_alter run first.
+ */
+function pathauto_update_1() {
+  $ret = array();
+  $ret[] = update_sql("UPDATE {system} SET weight = 2 WHERE name = 'jammer'");
+  return $ret;
+}

