You are here

function weather_es_delete_form in Weather_es 6.3

Same name and namespace in other branches
  1. 7 weather_es.module \weather_es_delete_form()

@author jmsirvent

Parameters

$form_state, int $wid: 0: site, user->uid, int $cit_cod, string $cit_name:

1 string reference to 'weather_es_delete_form'
weather_es_menu in ./weather_es.module
hook_menu

File

./weather_es.module, line 316

Code

function weather_es_delete_form(&$form_state, $wid, $cit_cod, $cit_nam) {
  $form['wid'] = array(
    '#type' => 'value',
    '#value' => $wid,
  );
  $form['cit_cod'] = array(
    '#type' => 'value',
    '#value' => $cit_cod,
  );

  // I don't trust in moduleName_formid_submit...
  $form['#submit'][] = 'weather_es_delete_form_submit';
  return confirm_form($form, t('Are you sure you want to delete the location %name?', array(
    '%name' => $cit_nam,
  )), _weather_es_redirect($wid), t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}