function weather_es_confirm_delete_submit in Weather_es 6
Same name and namespace in other branches
- 5 weather_es.module \weather_es_confirm_delete_submit()
Handle the deletion of a location
File
- ./
weather_es.module, line 360 - Non-displayable characters.
Code
function weather_es_confirm_delete_submit($form_id, $form_values) {
// delete the entry
$sql = "DELETE FROM {weather_es_config} WHERE uid = %d AND cod_pro = %d AND cod_loc = %d";
db_query($sql, $form_values['wuid'], substr($form_values['cit_cod'], 0, 2), substr($form_values['cit_cod'], 2, 4));
drupal_set_message(t('The location has been deleted.'));
$path = $form_values['path'];
return "{$path}";
}