blob: 9c88466694ac7b82bbf882678bf841a230254add (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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
}
|