You are here

function weather_update_6508 in Weather 6.5

Implementation of hook_update_N().

Insert some cities in Belgium.

File

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

Code

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

  // Insert cities
  $sql = "INSERT INTO {weather_icao} (icao, country, name, latitude, longitude)\n    VALUES ('EBBE', 'Belgium', 'Beauvechain', 50.757778, 4.766944)";
  $ret[] = update_sql($sql);
  $sql = "INSERT INTO {weather_icao} (icao, country, name, latitude, longitude)\n    VALUES ('EBCV', 'Belgium', 'Chièvres', 50.575833, 3.831111)";
  $ret[] = update_sql($sql);
  $sql = "INSERT INTO {weather_icao} (icao, country, name, latitude, longitude)\n    VALUES ('EBFS', 'Belgium', 'Florennes', 50.243333, 4.645833)";
  $ret[] = update_sql($sql);
  $sql = "INSERT INTO {weather_icao} (icao, country, name, latitude, longitude)\n    VALUES ('EBBL', 'Belgium', 'Kleine Brogel', 51.168333, 5.470000)";
  $ret[] = update_sql($sql);
  $sql = "INSERT INTO {weather_icao} (icao, country, name, latitude, longitude)\n    VALUES ('EBFN', 'Belgium', 'Koksijde', 51.090278, 2.652778)";
  $ret[] = update_sql($sql);
  $sql = "INSERT INTO {weather_icao} (icao, country, name, latitude, longitude)\n    VALUES ('EBDT', 'Belgium', 'Schaffen', 50.999167, 5.065556)";
  $ret[] = update_sql($sql);
  return $ret;
}