function themekey_redirect_block_save in ThemeKey 7.3
Implements hook_block_save().
File
- themekey_redirect/
themekey_redirect.module, line 337 - Define rules to redirect the user to a different domain. The common use-case is to setup sub-domains for mobile sites. In this case you can configure ThemeKey Redirect to detect mobile clients and redirect the user accordingly. In ThemeKey itself you…
Code
function themekey_redirect_block_save($delta = '', $edit = array()) {
switch ($delta) {
case 'domain_selector':
variable_set('themekey_redirect_domain_selector', themekey_redirect_parse_domain_selector($edit['domain_list']));
variable_set('themekey_redirect_domain_selector_auto_hide', !empty($edit['auto_hide']) ? 1 : 0);
// fast deletion of page cache (truncate) for new css
cache_clear_all('*', 'cache_page', TRUE);
// and block cache
cache_clear_all('*', 'cache_block', TRUE);
break;
}
}