Browse Source

Merge pull request #284 from nigelgbanks/7.x-solution-pack-issues

islandora_delete_object() now follows function description.
pull/285/merge
Danny Joris 12 years ago
parent
commit
0489192630
  1. 12
      islandora.module

12
islandora.module

@ -850,10 +850,18 @@ function islandora_add_object(NewFedoraObject &$object) {
* An object to delete.
*
* @return bool
* The ingested FedoraObject, after running the pre/post ingest hooks.
* TRUE if successful, FALSE otherwise.
*/
function islandora_delete_object(FedoraObject &$object) {
return $object->repository->purgeObject($object->id);
try {
$object->repository->purgeObject($object->id);
$object = NULL;
return TRUE;
}
catch(Exception $e) {
// Exception message gets logged in Tuque Wrapper.
return FALSE;
}
}
/**

Loading…
Cancel
Save