function domain_theme_reset_form_submit in Domain Access 7.2
Same name and namespace in other branches
- 5 domain_theme/domain_theme.module \domain_theme_reset_form_submit()
- 6.2 domain_theme/domain_theme.admin.inc \domain_theme_reset_form_submit()
- 7.3 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 192 - Include file to handle theme configration 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/theme/' . $form_state['values']['domain_id'];
// Clear the cache.
cache_clear_all();
}