You are here

function domain_locale_reset_form_submit in Domain Locale 7

Same name and namespace in other branches
  1. 6 domain_locale.admin.inc \domain_locale_reset_form_submit()

FormsAPI for domain_locale_reset_form.

File

./domain_locale.admin.inc, line 193
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/view/' . $form_state['values']['domain_id'] . '/language';
}