function admin_update_6002 in Admin 6.2
Same name and namespace in other branches
- 6 admin.install \admin_update_6002()
Update 6002: Update theme namespace to 'slate' & clears out any customizations to key admin menu items.
File
- ./
admin.install, line 49
Code
function admin_update_6002() {
db_query("DELETE FROM {system} WHERE name = 'admin' AND type = 'theme'");
_admin_theme_rebuild(TRUE);
if (variable_get('admin_theme', NULL) == 'admin') {
variable_set('admin_theme', 'slate');
}
$result = db_query("SELECT * FROM {menu_links} WHERE link_path LIKE 'admin%'");
while ($item = db_fetch_array($result)) {
_menu_delete_item($item, TRUE);
}
menu_rebuild();
return array();
}