You are here

function admin_menu_install in Administration menu 7.3

Same name and namespace in other branches
  1. 8.3 admin_menu.install \admin_menu_install()
  2. 5.3 admin_menu.install \admin_menu_install()
  3. 6.3 admin_menu.install \admin_menu_install()

Implements hook_install().

File

./admin_menu.install, line 20
Install, update, and uninstall functions for the admin menu module.

Code

function admin_menu_install() {

  // Increase the module weight, so admin_menu catches any alterations made by
  // other modules in hook_menu_alter().
  db_update('system')
    ->fields(array(
    'weight' => 100,
  ))
    ->condition('type', 'module')
    ->condition('name', 'admin_menu')
    ->execute();
}