You are here

function date_api_delete_format_form in Date 6.2

Menu callback; present a form for deleting a date format.

1 string reference to 'date_api_delete_format_form'
date_api_menu in ./date_api.module
Implementation of hook_menu().

File

./date_api.admin.inc, line 158
Administrative page callbacks for the date_api module.

Code

function date_api_delete_format_form(&$form_state, $dfid) {
  $form = array();
  $form['dfid'] = array(
    '#type' => 'value',
    '#value' => $dfid,
  );
  $format = date_get_format($dfid);
  $output = confirm_form($form, t('Are you sure you want to remove the format %format?', array(
    '%format' => date_format_date(date_now(), 'custom', $format['format']),
  )), 'admin/settings/date-time/formats/custom', t('This action cannot be undone.'), t('Remove'), t('Cancel'), 'confirm');
  return $output;
}