From 4970cd838e2f91ba183aedf052b5c110eaba066e Mon Sep 17 00:00:00 2001 From: Patrick Dunlavey Date: Tue, 22 May 2018 09:07:44 -0400 Subject: [PATCH] Added 'islandora_' to hook name. --- includes/datastream.inc | 2 +- islandora.api.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/datastream.inc b/includes/datastream.inc index 62bcf764..41432333 100644 --- a/includes/datastream.inc +++ b/includes/datastream.inc @@ -65,7 +65,7 @@ function islandora_view_datastream(AbstractDatastream $datastream, $download = F } // Allow other modules to modify or replace the filename. - drupal_alter('datastream_filename', $filename, $datastream); + drupal_alter('islandora_datastream_filename', $filename, $datastream); header("Content-Disposition: attachment; filename=\"$filename\""); } diff --git a/islandora.api.php b/islandora.api.php index 3c9dfc12..c5de95e1 100644 --- a/islandora.api.php +++ b/islandora.api.php @@ -955,7 +955,7 @@ function callback_islandora_breadcrumbs_backends(AbstractObject $object) { * @param AbstractDatastream $datastream * The datastream object being downloaded. */ -function hook_datastream_filename_alter(&$filename, AbstractDatastream $datastream) { +function hook_islandora_datastream_filename_alter(&$filename, AbstractDatastream $datastream) { // Example taken from islandora_datastream_filenamer. $pattern = variable_get('islandora_ds_download_filename_pattern', FALSE);