You are here

function _weather_es_conf_save in Weather_es 7

Same name and namespace in other branches
  1. 6.3 weather_es.module \_weather_es_conf_save()

Save the user configuration

@author jmsirvent

1 call to _weather_es_conf_save()
weather_es_form_submit in ./weather_es.module
@author jmsirvent

File

./weather_es.module, line 909

Code

function _weather_es_conf_save($wid, $cit_cod, $lan, $inf_typ, $inf_amo) {
  db_insert('weather_es_conf')
    ->fields(array(
    'wid',
    'cit_cod',
    'lan',
    'inf_typ',
    'inf_amo',
  ))
    ->values(array(
    'wid' => $wid,
    'cit_cod' => $cit_cod,
    'lan' => $lan,
    'inf_typ' => $inf_typ,
    'inf_amo' => $inf_amo,
  ))
    ->execute();
}