You are here

function domain_conf_reset_form_submit in Domain Access 7.3

Same name and namespace in other branches
  1. 5 domain_conf/domain_conf.module \domain_conf_reset_form_submit()
  2. 6.2 domain_conf/domain_conf.admin.inc \domain_conf_reset_form_submit()
  3. 7.2 domain_conf/domain_conf.admin.inc \domain_conf_reset_form_submit()

FormsAPI for domain_conf_reset_form().

1 call to domain_conf_reset_form_submit()
domain_settings_reset_form_submit in domain_settings/domain_settings.module
Form submit handler to batch reset custom settings.

File

domain_conf/domain_conf.admin.inc, line 171
Domain manager configuration options.

Code

function domain_conf_reset_form_submit($form, &$form_state) {
  domain_conf_data_delete($form_state['values']['domain_id']);
  drupal_set_message(t('Domain configuration settings have been reset.'));
  $form_state['redirect'] = 'admin/structure/domain/view/' . $form_state['values']['domain_id'] . '/config';

  // Clear the cache.
  cache_clear_all();
}