function _weather_es_get_config in Weather_es 6
Same name and namespace in other branches
- 5 weather_es_parser.inc \_weather_es_get_config()
- 6.2 weather_es_parser.inc \_weather_es_get_config()
Get the user configuration
File
- ./
weather_es_parser.inc, line 370 - Gets the data from the AEMET web
Code
function _weather_es_get_config($uid) {
$sql = "SELECT cod_pro, cod_loc FROM {weather_es_config} WHERE uid = %d";
$result = db_query($sql, $uid);
while ($data = db_fetch_object($result)) {
(string) ($cities[] = $data->cod_pro . $data->cod_loc);
}
return $cities;
}