| 7 locale.admin.inc | locale_date_format_reset_form($form, &$form_state, $langcode) |
| 8 locale.admin.inc | 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'.
1 string reference to 'locale_date_format_reset_form'
File
- modules/
locale/ locale.admin.inc, line 1420 - 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'));
}
Login or register to post comments