You are here

function domain_theme_reset_form_submit in Domain Access 7.3

Same name and namespace in other branches
  1. 5 domain_theme/domain_theme.module \domain_theme_reset_form_submit()
  2. 6.2 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.admin.inc, line 209
Include file to handle theme configuration screen

Code

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

  // Clear the cache.
  cache_clear_all();
}