function _weather_es_conf_update in Weather_es 7
Same name and namespace in other branches
- 6.3 weather_es.module \_weather_es_conf_update()
Update an old user configuration
@author jmsirvent
1 call to _weather_es_conf_update()
- weather_es_form_submit in ./
weather_es.module - @author jmsirvent
File
- ./
weather_es.module, line 932
Code
function _weather_es_conf_update($wid, $cit_cod, $lan, $inf_typ, $inf_amo) {
$and_q = db_and();
$and_q
->condition('wid', array(
':wid' => $wid,
))
->condition('cit_cod', array(
':cit_cod' => $cit_cod,
));
db_update('weather_es_conf')
->fields(array(
'lan' => $lan,
'inf_typ' => $inf_typ,
'inf_amo' => $inf_amo,
))
->condition($and_q)
->execute();
}