function admin_menu_update_6000 in Administration menu 6
Same name and namespace in other branches
- 6.3 admin_menu.install \admin_menu_update_6000()
- 7.3 admin_menu.install \admin_menu_update_6000()
Ensure that admin_menu is rebuilt after upgrading to D6.
File
- ./
admin_menu.install, line 22
Code
function admin_menu_update_6000() {
$ret = array();
// Delete menu links.
db_query("DELETE FROM {menu_links} WHERE module = 'admin_menu'");
variable_set('admin_menu_rebuild_links', TRUE);
// 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')) {
$ret[] = update_sql("DROP TABLE {admin_menu}");
}
return $ret;
}