You are here

function path_alias_xt_install in Extended Path Aliases 7

Same name and namespace in other branches
  1. 6 path_alias_xt.install \path_alias_xt_install()

Implements hook_install().

File

./path_alias_xt.install, line 32
Install and uninstall hooks for path_alias_xt module.

Code

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();
}