diff --git a/pathauto.install b/pathauto.install index cd5211c..b03dcad 100644 --- a/pathauto.install +++ b/pathauto.install @@ -21,9 +21,14 @@ function pathauto_install() { // Set the default separator character to replace instead of remove (default). variable_set('pathauto_punctuation_hyphen', 1); - // Set the weight to 1 + // Set the weight to 1 more than the core path module + $w = db_select('system', 's') + ->fields('s', array('weight')) + ->condition('name', 'path') + ->execute() + ->fetchColumn(); db_update('system') - ->fields(array('weight' => 1)) + ->fields(array('weight' => $w + 1)) ->condition('type', 'module') ->condition('name', 'pathauto') ->execute();