1 system.admin.inc system_date_delete_format_form_submit($form, &$form_state)

Delete a configured date format.

File

core/modules/system/system.admin.inc, line 2330
Admin page callbacks for the system module.

Code

function system_date_delete_format_form_submit($form, &$form_state) {
  $format = $form_state['format'];
  system_date_format_delete($format['name']);
  token_cache_clear();
  backdrop_set_message(t('Removed date format %format.', array('%format' => $format['label'])));
  $form_state['redirect'] = 'admin/config/regional/date-time/formats';
}