function system_delete_date_format_type_form

7.x system.admin.inc system_delete_date_format_type_form($form, &$form_state, $format_type)

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

1 string reference to 'system_delete_date_format_type_form'
system_menu in drupal-7.x/modules/system/system.module
Implements hook_menu().

File

drupal-7.x/modules/system/system.admin.inc, line 2800
Admin page callbacks for the system module.

Code

function system_delete_date_format_type_form($form, &$form_state, $format_type) {
  $form['format_type'] = array(
    '#type' => 'value',
    '#value' => $format_type,
  );
  $type_info = system_get_date_types($format_type);

  $output = confirm_form($form, 
  t('Are you sure you want to remove the date type %type?', array('%type' => $type_info['title'])), 
  'admin/config/regional/date-time', 
  t('This action cannot be undone.'), 
  t('Remove'), t('Cancel'), 
  'confirm'
  );

  return $output;
}