function domain_theme_reset_form_submit in Domain Access 6.2
Same name and namespace in other branches
- 5 domain_theme/domain_theme.module \domain_theme_reset_form_submit()
- 7.3 domain_theme/domain_theme.admin.inc \domain_theme_reset_form_submit()
- 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 228 - Include file to handle theme configration screen
Code
function domain_theme_reset_form_submit($form, &$form_state) {
db_query("DELETE FROM {domain_theme} WHERE domain_id = %d", $form_state['values']['domain_id']);
drupal_set_message(t('Domain theme settings have been reset.'));
$form_state['redirect'] = 'admin/build/domain/theme/' . $form_state['values']['domain_id'];
// Clear the cache.
cache_clear_all();
}