You are here

function date_api_delete_format_type_form in Date 6.2

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

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

File

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

Code

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