aboutsummaryrefslogtreecommitdiff
path: root/load_imagecache_presets.install
diff options
context:
space:
mode:
Diffstat (limited to 'load_imagecache_presets.install')
-rw-r--r--load_imagecache_presets.install50
1 files changed, 50 insertions, 0 deletions
diff --git a/load_imagecache_presets.install b/load_imagecache_presets.install
new file mode 100644
index 0000000..9c88466
--- /dev/null
+++ b/load_imagecache_presets.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
+}