From 27be8ded87ad814f133fdb9edb3b7df65d6e088a Mon Sep 17 00:00:00 2001 From: Adam Vessey Date: Thu, 12 Apr 2012 09:38:38 -0300 Subject: [PATCH] Add 'quiet' parameter to modify_datastream wrapper. --- api/fedora_item.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/fedora_item.inc b/api/fedora_item.inc index 318ce114..2079d060 100644 --- a/api/fedora_item.inc +++ b/api/fedora_item.inc @@ -909,8 +909,10 @@ RDF; * Dunno, refer to underlying functions/SOAP interface. We just pass it like a chump. * @param string $logMessage * A message for the audit log. + * @param boolean $quiet + * Error suppression? Refer to soap_call for usage (just passed along here). */ - function modify_datastream($filename_or_content, $dsid, $label, $mime_type, $force = FALSE, $logMessage='Modified by Islandora API') { + function modify_datastream($filename_or_content, $dsid, $label, $mime_type, $force = FALSE, $logMessage='Modified by Islandora API', $quiet=FALSE) { //Determine if it's inline xml; if it is, modify by value if ($this->get_datastream($dsid)->controlGroup === 'X') { $content = '';