You are here

function weather_update_6506 in Weather 6.5

Implementation of hook_update_N().

Fix typography of two locations and remove Lupin Airport Supplementary Aviation Weather Reporting Station.

File

./weather.install, line 650
Database installation of weather module.

Code

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

  // Fix typography
  $sql = "UPDATE {weather_icao} SET name='NM - Raton, Raton Municipal / Crews Field Airport' WHERE icao='KRTN'";
  $ret[] = update_sql($sql);
  $sql = "UPDATE {weather_icao} SET name='Djibouti / Ambouli' WHERE icao='HDAM'";
  $ret[] = update_sql($sql);
  $sql = "DELETE FROM {weather_icao} WHERE icao='CYWO'";
  $ret[] = update_sql($sql);
  return $ret;
}