function locale_date_format_reset_form
locale_date_format_reset_form($form, &$form_state, $langcode)
Reset locale specific date formats to the global defaults.
Parameters
$langcode: Language code, e.g. 'en'.
File
- modules/locale/locale.admin.inc, line 1418
- Administration functions for locale.module.
Code
function locale_date_format_reset_form($form, &$form_state, $langcode) { $form['langcode'] = array('#type' => 'value', '#value' => $langcode); $languages = language_list(); return confirm_form($form, t('Are you sure you want to reset the date formats for %language to the global defaults?', array('%language' => $languages[$langcode]->name)), 'admin/config/regional/date-time/locale', t('Resetting will remove all localized date formats for this language. This action cannot be undone.'), t('Reset'), t('Cancel')); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!locale!locale.admin.inc/function/locale_date_format_reset_form/7.x