diff --git a/path_alias_xt.install b/path_alias_xt.install
index 794f4f1..f9401d7 100644
--- a/path_alias_xt.install
+++ b/path_alias_xt.install
@@ -28,6 +28,12 @@ function path_alias_xt_requirements($phase) {
  * Implements hook_install().
  */
 function path_alias_xt_install() {
+  // Path alias xt hooks should be executed before other modules hooks, in order to redefine 
+  // drupal_get_path_alias before other modules get a chance to call it
+  db_update('system')
+    ->fields(array('weight' => -1))
+    ->condition('name', 'path_alias_xt')
+    ->execute();
   return;
 }
 
@@ -40,6 +46,20 @@ function path_alias_xt_uninstall() {
 
 /**
  * Implements hook_update_N().
+ * 
+ * Redefine module weight
+ */
+function path_alias_xt_update_7002() {
+  // Path alias xt hooks should be executed before other modules hooks, in order to redefine 
+  // drupal_get_path_alias before other modules get a chance to call it
+  db_update('system')
+    ->fields(array('weight' => -1))
+    ->condition('name', 'path_alias_xt')
+    ->execute();
+}
+
+/**
+ * Implements hook_update_N().
  *
  * Any saved existing version of 'path_alias_xt_regex_pattern' will not work
  * with the updated source code. So delete it.
