forked from ppound/islandora_image_annotation
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathislandora_image_annotation.install
42 lines (38 loc) · 1.08 KB
/
islandora_image_annotation.install
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
<?php
/**
* @file
* islandora_image_annotation.install
*/
/**
* Implements hook_requirements().
*/
function islandora_image_annotation_requirements($phase) {
if ($phase == 'install') {
module_load_include('inc', 'islandora', 'includes/tuque');
if (!IslandoraTuque::exists()) {
return array(array(
'title' => 'Tuque',
'description' => 'The Islandora Basic Image solution pack requires the Tuque library.',
'severity' => REQUIREMENT_ERROR,
));
}
}
}
/**
* Implements hook_install().
*
* @see islandora_image_annotation_islandora_required_objects()
*/
function islandora_image_annotation_install() {
module_load_include('inc', 'islandora', 'includes/solution_packs');
// install solution pack object(s)
islandora_install_solution_pack('islandora_image_annotation');
}
/**
* Implements hook_uninstall().
*/
function islandora_image_annotation_uninstall() {
module_load_include('inc', 'islandora', 'includes/solution_packs');
// uninstall callback
islandora_install_solution_pack('islandora_image_annotation', 'uninstall');
}