function _styleswitcher_configuration_changed in Style Switcher 6.2
Same name and namespace in other branches
- 7.2 styleswitcher.admin.inc \_styleswitcher_configuration_changed()
Performs routine tasks after module's configuration has been changed.
Parameters
array &$form_state: (optional) Form state array from the form being submitted.
4 calls to _styleswitcher_configuration_changed()
- styleswitcher_admin_submit in ./
styleswitcher.admin.inc - Form submission handler for styleswitcher_admin().
- styleswitcher_config_theme_submit in ./
styleswitcher.admin.inc - Form submission handler for styleswitcher_config_theme().
- styleswitcher_style_delete_form_submit in ./
styleswitcher.admin.inc - Form submission handler for styleswitcher_style_delete_form().
- styleswitcher_style_form_submit in ./
styleswitcher.admin.inc - Form submission handler for styleswitcher_style_form().
File
- ./
styleswitcher.admin.inc, line 474 - Styleswitcher configuration functionality.
Code
function _styleswitcher_configuration_changed(array &$form_state = array()) {
$form_state['redirect'] = 'admin/settings/styleswitcher';
// Clear blocks and pages from cache to reflect style changes.
if (module_exists('block')) {
cache_clear_all('styleswitcher:styleswitcher:', 'cache_block', TRUE);
}
cache_clear_all('*', 'cache_page', TRUE);
}