Skip to content

Commit

Permalink
Merge pull request #14 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
mjordan committed Sep 22, 2014
2 parents fc5bc6c + 49661c0 commit 9bd27e9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions islandora_checksum_checker.install
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,18 @@
function islandora_checksum_checker_install() {
variable_set('islandora_checksum_checker_last_item_checked', '0');
}

/**
* Implements hook_uninstall().
*/
function islandora_checksum_checker_uninstall() {
$variables = array(
'islandora_checksum_checker_queue_cron_method',
'islandora_checksum_checker_items_per_cron',
'islandora_checksum_checker_dsids_to_check',
'islandora_checksum_checker_email_reports_to',
'islandora_checksum_checker_send_complete_message',
'islandora_checksum_checker_log_mismatches',
);
array_walk($variables, 'variable_del');
}

0 comments on commit 9bd27e9

Please sign in to comment.