function system_date_delete_format_form_submit in Drupal 7
Delete a configured date format.
File
- modules/
system/ system.admin.inc, line 2822 - Admin page callbacks for the system module.
Code
function system_date_delete_format_form_submit($form, &$form_state) {
if ($form_state['values']['confirm']) {
$format = system_get_date_format($form_state['values']['dfid']);
system_date_format_delete($form_state['values']['dfid']);
drupal_set_message(t('Removed date format %format.', array(
'%format' => format_date(REQUEST_TIME, 'custom', $format->format),
)));
$form_state['redirect'] = 'admin/config/regional/date-time/formats';
}
}