Mercurial > defr > drupal > ad
changeset 5:cd53a6ba3f97 ad
maj premiere release officielle 2 module advertisement
author | sly |
---|---|
date | Mon, 27 Apr 2009 10:27:57 +0000 |
parents | 0d1c70d51fbe |
children | b7653861e0b4 |
files | cache/file/ad_cache_file.install |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cache/file/ad_cache_file.install Mon Apr 27 10:27:57 2009 +0000 @@ -0,0 +1,16 @@ +<?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')))); + } +}