function ad_cache_file_disable in Advertisement 7
Same name and namespace in other branches
- 6.3 cache/file/ad_cache_file.install \ad_cache_file_disable()
- 6.2 cache/file/ad_cache_file.install \ad_cache_file_disable()
Implementation of hook_disable().
File
- cache/
file/ ad_cache_file.install, line 11 - Install file for ad_cache_file.module.
Code
function ad_cache_file_disable() {
if (variable_get('ad_cache', 'none') === 'file') {
variable_set('ad_cache', 'none');
drupal_set_message(t('The advertisement cache type has been reverted from %file to %none because the %name module was disabled.', array(
'%file' => t('file'),
'%none' => t('none'),
'%name' => t('ad file cache'),
)));
}
}