You are here

function admin_menu_update_6301 in Administration menu 6.3

Add the "admin_menu" menu.

File

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

Code

function admin_menu_update_6301() {
  $ret = array();

  // Delete obsolete variable.
  variable_del('admin_menu_rebuild_links');

  // Create menu.
  $ret[] = _admin_menu_install_menu();

  // Clean-up menu links from earlier versions.
  $ret[] = update_sql("DELETE FROM {menu_links} WHERE module = 'admin_menu' OR menu_name = 'admin_menu'");
  return $ret;
}