function locale_date_format_reset_form_submit

Reset date formats for a specific language to global defaults.

File

modules/locale/locale.admin.inc, line 1431

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';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.