|
|
@ -444,13 +444,13 @@ function islandora_object_delete_form_submit($form, &$form_state) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ($delete_media) { |
|
|
|
if ($delete_media) { |
|
|
|
foreach ($delete_media as $media) { |
|
|
|
foreach ($delete_media as $id => $media) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
$media->delete(); |
|
|
|
$media->delete(); |
|
|
|
|
|
|
|
$media_list .= $id . ", "; |
|
|
|
$logger->notice('The media %label has been deleted.', [ |
|
|
|
$logger->notice('The media %label has been deleted.', [ |
|
|
|
'%label' => $media->label(), |
|
|
|
'%label' => $media->label(), |
|
|
|
]); |
|
|
|
]); |
|
|
|
$media_list .= $id . ", "; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
catch (Exception $e) { |
|
|
|
catch (Exception $e) { |
|
|
|
$entity_protected_medias[] = $id; |
|
|
|
$entity_protected_medias[] = $id; |
|
|
|