You are here

function domain_conf_reset_form_submit in Domain Access 7.2

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.3 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 229
Domain manager configuration options.

Code

function domain_conf_reset_form_submit($form, &$form_state) {
  db_delete('domain_conf')
    ->condition('domain_id', $form_state['values']['domain_id'])
    ->execute();
  drupal_set_message(t('Domain configuration settings have been reset.'));
  $form_state['redirect'] = 'admin/structure/domain/conf/' . $form_state['values']['domain_id'];

  // Clear the cache.
  cache_clear_all();
}