You are here

function weather_get_countries in Weather 6.5

Same name and namespace in other branches
  1. 7.3 weather.forms.inc \weather_get_countries()
  2. 7 weather.forms.inc \weather_get_countries()
  3. 7.2 weather.forms.inc \weather_get_countries()
1 call to weather_get_countries()
weather_custom_block in ./weather.module
Show a configuration page for a custom weather block

File

./weather.module, line 1922
Display <acronym title="METeorological Aerodrome Report">METAR</acronym> weather data from anywhere in the world

Code

function weather_get_countries() {
  $sql = "SELECT country FROM {weather_icao}\n";
  $sql .= "GROUP BY country ORDER BY country ASC";
  $result = db_query($sql);
  while ($row = db_fetch_array($result)) {
    $countries[] = $row['country'];
  }
  return $countries;
}