You are here

function admin_menu_install in Administration menu 6.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. 7.3 admin_menu.install \admin_menu_install()

Implementation of hook_install().

File

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

Code

function admin_menu_install() {

  // Create menu.
  _admin_menu_install_menu();

  // Create cache table.
  drupal_install_schema('admin_menu');

  // Increase the module weight, so admin_menu catches any alterations made by
  // other modules in hook_menu_alter().
  db_query("UPDATE {system} SET weight = 100 WHERE name = 'admin_menu'");
}