function template_preprocess_weather_es in Weather_es 6.2
Same name and namespace in other branches
- 6.3 weather_es.module \template_preprocess_weather_es()
- 7 weather_es.module \template_preprocess_weather_es()
Preprocess the data
File
- ./
weather_es.module, line 648 - Shows weather data of Spain (by AEMET)
Code
function template_preprocess_weather_es(&$variables) {
$variables['data']->day = filter_xss($variables['data']->day);
$variables['data']->sky_txt1 = filter_xss($variables['data']->sky_txt1);
$variables['usrcnf']->sky = filter_xss($variables['usrcnf']->sky);
$variables['data']->ampm = filter_xss($variables['data']->ampm);
$variables['data']->sky_img1 = filter_xss($variables['data']->sky_img1);
$variables['data']->sky_txt2 = filter_xss($variables['data']->sky_txt2);
$variables['data']->sky_img2 = filter_xss($variables['data']->sky_img2);
$variables['usrcnf']->sky = filter_xss($variables['usrcnf']->sky);
$variables['data']->rain = filter_xss($variables['data']->rain);
$variables['usrcnf']->rain = filter_xss($variables['usrcnf']->rain);
$variables['data']->snow = filter_xss($variables['data']->snow);
$variables['usrcnf']->snow = filter_xss($variables['usrcnf']->snow);
$variables['data']->tmax = filter_xss($variables['data']->tmax);
$variables['usrcnf']->tmax = filter_xss($variables['usrcnf']->tmax);
$variables['data']->tmin = filter_xss($variables['data']->tmin);
$variables['usrcnf']->tmin = filter_xss($variables['usrcnf']->tmin);
$variables['data']->win_dir1 = filter_xss($variables['data']->win_dir1);
$variables['usrcnf']->win_dir1 = filter_xss($variables['usrcnf']->win_dir1);
$variables['data']->win_dir2 = filter_xss($variables['data']->win_dir2);
$variables['usrcnf']->win_dir2 = filter_xss($variables['usrcnf']->win_dir2);
$variables['data']->win_spd1 = filter_xss($variables['data']->win_spd1);
$variables['usrcnf']->win_spd1 = filter_xss($variables['usrcnf']->win_spd1);
$variables['data']->win_spd2 = filter_xss($variables['data']->win_spd2);
$variables['usrcnf']->win_spd2 = filter_xss($variables['usrcnf']->win_spd2);
$variables['data']->iv_max = filter_xss($variables['data']->iv_max);
$variables['usrcnf']->iv_max = filter_xss($variables['usrcnf']->iv_max);
$variables['data']->rsk = filter_xss($variables['data']->rsk);
$variables['usrcnf']->rsk = filter_xss($variables['usrcnf']->rsk);
}