You are here

function _weather_es_get_config in Weather_es 6.2

Same name and namespace in other branches
  1. 5 weather_es_parser.inc \_weather_es_get_config()
  2. 6 weather_es_parser.inc \_weather_es_get_config()

Get the user configuration

File

./weather_es_parser.inc, line 266
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;
}