function system_date_delete_format_form_submit
7.x system.admin.inc | system_date_delete_format_form_submit($form, &$form_state) |
Delete a configured date format.
File
- drupal-7.x/
modules/ system/ system.admin.inc, line 2788 - 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';
}
}