You are here

function spaces_update_6001 in Spaces 6

Same name and namespace in other branches
  1. 6.3 spaces.install \spaces_update_6001()
  2. 6.2 spaces.install \spaces_update_6001()

Update script 6001.

File

./spaces.install, line 192

Code

function spaces_update_6001() {
  $ret = array();

  // Install spaces menu
  _spaces_install_menu();

  // Lose some weight, spaces!
  db_query("UPDATE {system} SET weight = -1 WHERE name = 'spaces' AND type ='module'");

  // Schema -- add weight column to features table
  $schema = spaces_schema();
  db_add_field($ret, 'spaces_features', 'weight', $schema['spaces_features']['fields']['weight']);
  return $ret;
}