Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISLANDORA-977 -- Delete drupal variables on uninstall. #94

Merged
merged 4 commits into from
Sep 25, 2014
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions islandora_xacml_editor.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

/**
* @file
* This file contains all install related hooks.
*/

/**
* Implements hook_uninstall().
*/
function islandora_xacml_editor_uninstall() {
$variables = array(
'islandora_xacml_api_save_relationships',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be in the API module, @adam-vessey++

'islandora_xacml_api_rels_viewable_role',
'islandora_xacml_api_rels_viewable_user',
'islandora_xacml_editor_restricted_dsids',
'islandora_xacml_editor_restricted_mimes',
'islandora_xacml_editor_show_dsidregex',
'islandora_xacml_editor_show_mimeregex',
'islandora_xacml_editor_default_users',
'islandora_xacml_editor_default_roles',
);
array_walk($variables, 'variable_del');
}