You are here

function _weather_get_places in Weather 5

Same name and namespace in other branches
  1. 5.6 icao_codes.inc \_weather_get_places()
1 call to _weather_get_places()
weather_custom_block in ./weather.module
Show a configuration page for a custom weather block

File

./icao_codes.inc, line 33

Code

function _weather_get_places($country) {
  $icao_codes = _weather_setup_icao_codes();
  $result = array(
    '- none -' => t('- None -'),
  );
  foreach ($icao_codes[$country] as $icao => $info) {
    $result[$icao] = $info['name'];
  }
  return $result;
}