You are here

function admin_menu_toolbar_update_6300 in Administration menu 6.3

Same name and namespace in other branches
  1. 7.3 admin_menu_toolbar/admin_menu_toolbar.install \admin_menu_toolbar_update_6300()

Set module weight to a value higher than admin_menu.

At this point, admin_menu should have a weight of 100. To account for customized weights, we increase the weight relatively.

See also

admin_menu_toolbar_install()

File

admin_menu_toolbar/admin_menu_toolbar.install, line 24
Installation functionality for Administration menu toolbar module.

Code

function admin_menu_toolbar_update_6300() {
  $ret = array();
  $weight = db_result(db_query("SELECT weight FROM {system} WHERE type = 'module' AND name = 'admin_menu'"));
  $weight++;
  $ret[] = update_sql("UPDATE {system} SET weight = {$weight} WHERE type = 'module' AND name = 'admin_menu_toolbar'");
  return $ret;
}