forked from Islandora/islandora_solution_pack_collection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
islandora_basic_collection.install
49 lines (45 loc) · 1.61 KB
/
islandora_basic_collection.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
43
44
45
46
47
48
49
<?php
/**
* @file
* This file contains all install functions.
*/
/**
* Implements hook_install().
*
* @see islandora_basic_collection_islandora_required_objects()
*/
function islandora_basic_collection_install() {
module_load_include('inc', 'islandora', 'includes/solution_packs');
islandora_install_solution_pack('islandora_basic_collection');
}
/**
* Implements hook_uninstall().
*/
function islandora_basic_collection_uninstall() {
module_load_include('inc', 'islandora', 'includes/solution_packs');
islandora_install_solution_pack('islandora_basic_collection', 'uninstall');
$variables = array(
'islandora_basic_collection_generate_uuid',
'islandora_basic_collection_page_size',
'islandora_basic_collection_disable_collection_policy_delete',
'islandora_basic_collection_default_view',
'islandora_basic_collection_listing_block_links_to_render',
'islandora_basic_collection_listing_block_content_models_to_restrict',
'islandora_basic_collection_object_count_listing_content_models_to_restrict',
'islandora_basic_collection_object_count_listing_phrase',
'islandora_basic_collection_object_count_listing_placeholder',
'islandora_basic_collection_display_backend',
'islandora_basic_collection_disable_display_generation',
'islandora_basic_collection_admin_page_size',
);
array_walk($variables, 'variable_del');
}
/**
* Default collection paging update.
*/
function islandora_basic_collection_update_7001() {
$old_var = variable_get('islandora_basic_collection_page_size');
if ($old_var == '10') {
variable_set('islandora_basic_collection_page_size', '12');
}
}