ad_cache_file.install in Advertisement 6.2
Same filename and directory in other branches
Install file for ad_cache_file.module.
File
cache/file/ad_cache_file.installView source
<?php
/**
* @file
* Install file for ad_cache_file.module.
*/
/**
* Implementation of hook_disable().
*/
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'),
)));
}
}
Functions
Name | Description |
---|---|
ad_cache_file_disable | Implementation of hook_disable(). |