Skip to content

Commit

Permalink
Merge pull request #16 from ruebot/7.x-1.4-ISLANDORA-977
Browse files Browse the repository at this point in the history
ISLANDORA-977 -- Delete drupal variables on uninstall.
  • Loading branch information
jordandukart committed Sep 25, 2014
2 parents 72c8902 + 0c92885 commit 4752ad7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions islandora_solr_metadata.install
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @file
* Implementations of installation hooks.
Expand Down Expand Up @@ -121,6 +122,17 @@ function islandora_solr_metadata_schema() {
return $schema;
}

/**
* Implements hook_uninstall().
*/
function islandora_solr_metadata_uninstall() {
$variables = array(
'islandora_solr_metadata_omit_empty_values',
'islandora_solr_metadata_dedup_values',
);
array_walk($variables, 'variable_del');
}

/**
* Add the hyperlink column to the database going forward.
*/
Expand Down

0 comments on commit 4752ad7

Please sign in to comment.