You are here

function domain_conf_reset_form_submit in Domain Access 6.2

Same name and namespace in other branches
  1. 5 domain_conf/domain_conf.module \domain_conf_reset_form_submit()
  2. 7.3 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 215
Domain manager configuration options.

Code

function domain_conf_reset_form_submit($form, &$form_state) {
  db_query("DELETE FROM {domain_conf} WHERE domain_id = %d", $form_state['values']['domain_id']);
  drupal_set_message(t('Domain configuration settings have been reset.'));
  $form_state['redirect'] = 'admin/build/domain/conf/' . $form_state['values']['domain_id'];

  // Clear the cache.
  cache_clear_all();
}