You are here

function weather_es_confirm_delete in Weather_es 6

Same name and namespace in other branches
  1. 5 weather_es.module \weather_es_confirm_delete()

Confirmation page before deleting a location

1 string reference to 'weather_es_confirm_delete'
weather_es_menu in ./weather_es.module
Implementation of hook_menu().

File

./weather_es.module, line 332
Non-displayable characters.

Code

function weather_es_confirm_delete($wuid, $cit_cod, $cit_nam) {
  $path = _weather_es_redirect($wuid);
  $form = array();
  $form['wuid'] = array(
    '#type' => 'hidden',
    '#value' => $wuid,
  );
  $form['cit_cod'] = array(
    '#type' => 'hidden',
    '#value' => $cit_cod,
  );
  $form['path'] = array(
    '#type' => 'hidden',
    '#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'));
}