You are here

function domain_theme_reset_form_submit in Domain Access 5

Same name and namespace in other branches
  1. 6.2 domain_theme/domain_theme.admin.inc \domain_theme_reset_form_submit()
  2. 7.3 domain_theme/domain_theme.admin.inc \domain_theme_reset_form_submit()
  3. 7.2 domain_theme/domain_theme.admin.inc \domain_theme_reset_form_submit()

FormsAPI for domain_theme_reset_form.

File

domain_theme/domain_theme.module, line 116
Domain Theme module for the Domain Access module group.

Code

function domain_theme_reset_form_submit($form_id, $form_values) {
  db_query("DELETE FROM {domain_theme} WHERE domain_id = %d", $form_values['domain_id']);

  // Clear the cache.
  cache_clear_all();
  drupal_set_message(t('Domain theme settings have been reset.'));
}