You are here

function locale_date_format_reset_form_submit in Drupal 7

Reset date formats for a specific language to global defaults.

File

modules/locale/locale.admin.inc, line 1431
Administration functions for locale.module.

Code

function locale_date_format_reset_form_submit($form, &$form_state) {
  db_delete('date_format_locale')
    ->condition('language', $form_state['values']['langcode'])
    ->execute();
  $form_state['redirect'] = 'admin/config/regional/date-time/locale';
}