function _weather_es_cities in Weather_es 7
Same name and namespace in other branches
- 5 weather_es_parser.inc \_weather_es_cities()
- 6.3 weather_es.module \_weather_es_cities()
- 6 weather_es_parser.inc \_weather_es_cities()
- 6.2 weather_es_parser.inc \_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 893 
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();
}