Browse Source

Torching uninstall hooks because that will probably screw someone over eventually.

7.x-2.x
Daniel Lamb 10 years ago
parent
commit
23d43733ba
  1. 10
      islandora/islandora.install
  2. 10
      islandora_basic_image/islandora_basic_image.install

10
islandora/islandora.install

@ -24,13 +24,3 @@ function islandora_install() {
field_create_field($mods_field); 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);
}

10
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); 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);
}

Loading…
Cancel
Save