function _weather_es_city_name in Weather_es 6
Same name and namespace in other branches
- 6.2 weather_es_parser.inc \_weather_es_city_name()
Adopt the city-name to AEMET...
1 call to _weather_es_city_name()
- weather_es_configuration_submit in ./
weather_es.module - Handle the submission of the custom weather_es block.
File
- ./
weather_es_parser.inc, line 535 - Gets the data from the AEMET web
Code
function _weather_es_city_name($city) {
$convert_to = array(
'a',
'e',
'i',
'o',
'u',
'n',
'-',
);
$convert_from = array(
'á',
'é',
'í',
'ó',
'ú',
'ñ',
'/',
);
return str_replace($convert_from, $convert_to, $city);
}