You are here

function admin_path_install in Administrative pages 7

Implements hook_install().

File

./admin_path.install, line 11
Install, update and uninstall functions for the Administrative pages module.

Code

function admin_path_install() {

  // Administrative pages module should go last so that it can override all
  // admin paths other modules provided using both hook_admin_paths() and
  // hook_admin_paths_alter().
  db_update('system')
    ->fields(array(
    'weight' => 99,
  ))
    ->condition('name', 'admin_path')
    ->execute();
}