You are here

function _weather_get_countries in Weather 5.6

Same name and namespace in other branches
  1. 5 icao_codes.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

./icao_codes.inc, line 24

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;
}