forked from Islandora/islandora_scholar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathislandora_scholar.install
53 lines (49 loc) · 1.88 KB
/
islandora_scholar.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
50
51
52
53
<?php
/**
* @file
* Install hooks for this module.
*/
/**
* Implements hook_install().
*
* @see islandora_book_islandora_required_objects()
*/
function islandora_scholar_install() {
module_load_include('inc', 'islandora', 'includes/solution_packs');
islandora_install_solution_pack('islandora_scholar');
}
/**
* Implements hook_uninstall().
*/
function islandora_scholar_uninstall() {
module_load_include('inc', 'islandora', 'includes/solution_packs');
islandora_install_solution_pack('islandora_scholar', 'uninstall');
$variables = array(
'islandora_scholar_use_standard_metadata_display',
'islandora_scholar_users_choose_display_csl',
'islandora_scholar_romeo_enable',
'islandora_scholar_thumbnail_width',
'islandora_scholar_thumbnail_height',
'islandora_scholar_path_to_pdftotext',
'islandora_scholar_preview_width',
'islandora_scholar_preview_height',
'islandora_scholar_issn_cache_time',
'islandora_scholar_romeo_key',
'islandora_scholar_romeo_url',
'islandora_scholar_romeo_cache_time',
'islandora_scholar_create_fulltext',
'islandora_scholar_preview_density',
);
array_walk($variables, 'variable_del');
}
/**
* Print and log a message about updating derivative PDFs.
*/
function islandora_scholar_update_7100(&$sandbox) {
drupal_set_message(filter_xss(t('Existing citations with PDF datastreams should have derivatives created for them via Drush. Please consult the !url for further information.',
array(
'!url' => l(t('README'), 'https://github.com/discoverygarden/islandora_scholar/blob/7.x/README.txt', array('absolute' => TRUE)),
)
)));
watchdog('islandora_scholar', 'Existing citations with PDF datastreams should have derivatives created for them via Drush.', array(), WATCHDOG_NOTICE, l(t('README'), 'https://github.com/discoverygarden/islandora_scholar/blob/7.x/README.txt', array('external' => TRUE)));
}