function domain_locale_reset_form_submit in Domain Locale 6
Same name and namespace in other branches
- 7 domain_locale.admin.inc \domain_locale_reset_form_submit()
FormsAPI for domain_locale_reset_form.
File
- ./
domain_locale.admin.inc, line 172 - Provides admin functionality for domain specific language settings
Code
function domain_locale_reset_form_submit($form, &$form_state) {
domain_locale_delete_domain($form_state['values']['domain_id']);
domain_locale_restore_default($form_state['values']['domain_id']);
drupal_set_message(t('Domain language settings have been reset to default domain settings.'));
$form_state['redirect'] = 'admin/build/domain/language/' . $form_state['values']['domain_id'];
}