diff options
author | Silvio <silvio@devlet.com.br> | 2011-04-20 11:20:25 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-04-20 11:20:25 -0300 |
commit | d79e3b775b544fe3656d566b4b3148a0b6a1d398 (patch) | |
tree | 05a96baa9801a6f34068f38c98f18b9c65856bb6 /imagecache_auto.install | |
parent | 0b097f3d27109b1b6f52c4d21889f1d370006a22 (diff) | |
download | imagecache_auto-d79e3b775b544fe3656d566b4b3148a0b6a1d398.tar.gz imagecache_auto-d79e3b775b544fe3656d566b4b3148a0b6a1d398.tar.bz2 |
Renaming module (1)
Diffstat (limited to 'imagecache_auto.install')
-rw-r--r-- | imagecache_auto.install | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/imagecache_auto.install b/imagecache_auto.install new file mode 100644 index 0000000..9c88466 --- /dev/null +++ b/imagecache_auto.install @@ -0,0 +1,50 @@ +<?php +// $Id$ + +/** + * @file + * Banco de Conteudos Culturais Website installation procedures. + */ + +/** + * Includes. + */ +include_once('load_imagecache_presets.module'); + +/** + * Implementation of hook_install(). + * Install default cck. + */ +function load_imagecache_presets_install() { + /** + * The following code was replaced by using Features module. + */ + /* + module_load_include('inc', 'install_profile_api', 'contrib/content_copy'); + $files = file_scan_directory(drupal_get_path('module', 'bcc') .'/cck', '.*cck'); + + foreach ($files as $file) { + install_content_copy_import_from_file($file->filename); + } + */ + + load_imagecache_presets_create(); +} + +/** + * Remove configuration data. + */ +function load_imagecache_presets_uninstall() { + /** + * Leave this commented out as it's better not to delete + * cached data until we find a reason for that. + */ + /* + $presets = imagecache_presets(); + foreach ($presets as $options) { + imagecache_preset_delete($options); + } + */ + + // Remove variables +} |