function weather_get_places in Weather 6.5
Same name and namespace in other branches
- 7.3 weather.forms.inc \weather_get_places()
- 7 weather.module \weather_get_places()
- 7.2 weather.forms.inc \weather_get_places()
2 calls to weather_get_places()
- weather_custom_block in ./
weather.module - Show a configuration page for a custom weather block
- weather_js in ./
weather.module - Return a new place selection box based on the country selection
File
- ./
weather.module, line 1934 - Display <acronym title="METeorological Aerodrome Report">METAR</acronym> weather data from anywhere in the world
Code
function weather_get_places($country) {
$sql = "SELECT icao, name FROM {weather_icao}\n";
$sql .= "WHERE country='%s' ORDER BY name ASC";
$result = db_query($sql, $country);
while ($row = db_fetch_array($result)) {
$places[$row['icao']] = $row['name'];
}
return $places;
}