You are here

function _weather_es_cities in Weather_es 6.3

Same name and namespace in other branches
  1. 5 weather_es_parser.inc \_weather_es_cities()
  2. 6 weather_es_parser.inc \_weather_es_cities()
  3. 6.2 weather_es_parser.inc \_weather_es_cities()
  4. 7 weather_es.module \_weather_es_cities()

Spanish cities by province

@author jmsirvent

2 calls to _weather_es_cities()
weather_es_edit_form in ./weather_es.module
@author jmsirvent
weather_es_form_submit in ./weather_es.module
@author jmsirvent

File

./weather_es.module, line 709

Code

function _weather_es_cities($province) {
  $province = !empty($province) ? $province : '---';
  $cities = new weather_es_citPro($province);
  if ($cities
    ->error()) {
    if ($user->uid) {
      drupal_set_message($cities
        ->errorMessage(), 'error');
    }
  }
  return $cities
    ->getCities();
}