You are here

function admin_update_6002 in Admin 6

Same name and namespace in other branches
  1. 6.2 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 36

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();
}