From 0e82e30d0a370c9d10e3fb09255e2e30e806c6d7 Mon Sep 17 00:00:00 2001 From: willtp87 Date: Thu, 5 Mar 2015 14:38:40 -0400 Subject: [PATCH] miscomunication and mistakes fixin --- includes/tuque_wrapper.inc | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/includes/tuque_wrapper.inc b/includes/tuque_wrapper.inc index 74129627..ef2a2991 100644 --- a/includes/tuque_wrapper.inc +++ b/includes/tuque_wrapper.inc @@ -267,7 +267,9 @@ class IslandoraFedoraObject extends FedoraObject { return array(); default: - return parent::purgeDatastream($id); + $to_return = parent::purgeDatastream($id); + islandora_invoke_datastream_hooks(ISLANDORA_DATASTREAM_PURGED_HOOK, $this->models, $id, $this, $id); + return $to_return; } } catch (Exception $e) { @@ -333,16 +335,6 @@ class IslandoraFedoraApiM extends FedoraApiM { return parent::modifyDatastream($pid, $dsid, $params); } - /** - * Purge a datastream from from Fedora. - * - * @see FedoraApiM::purgeDatastream - */ - public function purgeDatastream($pid, $dsid, $params = array()) { - $object = islandora_object_load($pid); - islandora_invoke_datastream_hooks(ISLANDORA_DATASTREAM_PURGED_HOOK, $object->models, $dsid, $object, $dsid); - } - /** * Update Fedora Object parameters. *