Skip to content

Commit

Permalink
Merge pull request #122 from ruebot/7.x-ISLANDORA-977
Browse files Browse the repository at this point in the history
Address ISLANDORA-977.
  • Loading branch information
jordandukart committed Sep 26, 2014
2 parents 43f934b + b30e8b3 commit 2d34491
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
12 changes: 11 additions & 1 deletion islandora_scholar.install
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,20 @@ function islandora_scholar_install() {
function islandora_scholar_uninstall() {
module_load_include('inc', 'islandora', 'includes/solution_packs');
islandora_install_solution_pack('islandora_scholar', 'uninstall');
// @todo add rest of variables to delete at 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',
);
array_walk($variables, 'variable_del');
}
Expand Down
18 changes: 18 additions & 0 deletions modules/islandora_google_scholar/islandora_google_scholar.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

/**
* @file
* Install hooks for this module.
*/

/**
* Implements hook_install().
*/
function islandora_google_scholar_uninstall() {
$variables = array(
'islandora_scholar_google_scholar_search_enabled',
'islandora_scholar_google_scholar_primary_search_xpath',
'islandora_scholar_google_scholar_default_search_xpath',
)
array_walk($variables, 'variable_del');
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

/**
* @file
* Install hooks for this module.
*/

/**
* Implements hook_install().
*/
function islandora_scholar_embargo_uninstall() {
$variables = array(
'islandora_embargo_content_models',
)
array_walk($variables, 'variable_del');
}

0 comments on commit 2d34491

Please sign in to comment.