fields(array('weight' => 100)) ->condition('type', 'module') ->condition('name', 'admin_menu') ->execute(); } /** * Implements hook_uninstall(). */ function admin_menu_uninstall() { // Delete variables. variable_del('admin_menu_devel_modules'); variable_del('admin_menu_devel_modules_enabled'); variable_del('admin_menu_devel_modules_skip'); variable_del('admin_menu_margin_top'); variable_del('admin_menu_position_fixed'); variable_del('admin_menu_tweak_modules'); variable_del('admin_menu_tweak_tabs'); variable_del('admin_menu_show_all'); variable_del('admin_menu_display'); variable_del('admin_menu_cache_server'); variable_del('admin_menu_cache_client'); } /** * Ensure that admin_menu is rebuilt after upgrading to D6. */ function admin_menu_update_6000() { // Drop the {admin_menu} table in admin_menu_update_6000() on sites that used // one of the later patches in #132524. if (db_table_exists('admin_menu')) { db_drop_table('admin_menu'); } } /** * Wipe and rebuild so we can switch the icon path to . */ function admin_menu_update_6001() { db_delete('menu_links')->condition('module', 'admin_menu')->execute(); menu_cache_clear('admin_menu'); } /** * Add {cache_admin_menu} table. */ function admin_menu_update_7300() { if (!db_table_exists('cache_admin_menu')) { $schema = drupal_get_schema_unprocessed('system', 'cache'); db_create_table('cache_admin_menu', $schema); } } /** * Increase the module weight. * * @see admin_menu_install() */ function admin_menu_update_7302() { db_update('system') ->fields(array('weight' => 100)) ->condition('type', 'module') ->condition('name', 'admin_menu') ->execute(); } /** * Remove local tasks from {menu_links} table. */ function admin_menu_update_7303() { db_delete('menu_router') ->condition('path', 'admin/%', 'LIKE') ->condition('type', MENU_IS_LOCAL_TASK, '&') ->execute(); }