From 23d43733babf47d9bb249ddc425b6f46a22ab7d2 Mon Sep 17 00:00:00 2001 From: Daniel Lamb Date: Thu, 23 Apr 2015 19:46:30 +0000 Subject: [PATCH] Torching uninstall hooks because that will probably screw someone over eventually. --- islandora/islandora.install | 10 ---------- islandora_basic_image/islandora_basic_image.install | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/islandora/islandora.install b/islandora/islandora.install index af5a5798..38bef78a 100644 --- a/islandora/islandora.install +++ b/islandora/islandora.install @@ -24,13 +24,3 @@ function islandora_install() { field_create_field($mods_field); } - -/** - * Implements hook_uninstall(). - * - * Deletes the fields defined in hook_install(). - */ -function islandora_uninstall() { - field_delete_field(ISLANDORA_TN_FIELD); - field_delete_field(ISLANDORA_MODS_FIELD); -} diff --git a/islandora_basic_image/islandora_basic_image.install b/islandora_basic_image/islandora_basic_image.install index de5b4489..9c2e5730 100644 --- a/islandora_basic_image/islandora_basic_image.install +++ b/islandora_basic_image/islandora_basic_image.install @@ -87,13 +87,3 @@ function islandora_basic_image_install() { islandora_dcterms_attach_fields_to_bundle(ISLANDORA_BASIC_IMAGE_BUNDLE); } - -/** - * Implements hook_uninstall(). - */ -function islandora_basic_image_uninstall() { - field_delete_instance(field_info_instance('node_content', ISLANDORA_BASIC_IMAGE_MEDIUM_SIZE, ISLANDORA_BASIC_IMAGE_BUNDLE)); - field_delete_instance(field_info_instance('node_content', ISLANDORA_TN_FIELD, ISLANDORA_BASIC_IMAGE_BUNDLE)); - field_delete_instance(field_info_instance('node_content', ISLANDORA_MODS_FIELD, ISLANDORA_BASIC_IMAGE_BUNDLE)); - node_type_delete(ISLANDORA_BASIC_IMAGE_BUNDLE); -}