function weather_es_confirm_delete_form in Weather_es 6.2
Confirmation page before deleting a location
1 string reference to 'weather_es_confirm_delete_form'
- weather_es_menu in ./
weather_es.module - Implementation of hook_menu().
File
- ./
weather_es.module, line 334 - Shows weather data of Spain (by AEMET)
Code
function weather_es_confirm_delete_form($form, $wuid, $cit_cod, $cit_nam) {
$path = _weather_es_redirect($wuid);
$form = array();
$form['wuid'] = array(
'#type' => 'value',
'#value' => $wuid,
);
$form['cit_cod'] = array(
'#type' => 'hidden',
'#value' => $cit_cod,
);
$form['path'] = array(
'#type' => 'value',
'#value' => $path,
);
return confirm_form($form, t('Are you sure you want to delete the location %name?', array(
'%name' => $cit_nam,
)), '' . $path, t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}