From 1a42ad9ba549def38d50856db49d90e744cec637 Mon Sep 17 00:00:00 2001 From: Adam Vessey Date: Fri, 20 Mar 2015 13:44:43 -0300 Subject: [PATCH] Expand on documentation of hook_islandora_edit_datastream_registry(). --- islandora.api.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/islandora.api.php b/islandora.api.php index dad43838..a86b2a3d 100644 --- a/islandora.api.php +++ b/islandora.api.php @@ -361,9 +361,22 @@ function hook_cmodel_pid_islandora_datastream_purged(AbstractObject $object, $ds * @param AbstractObject $object * The object to check. * @param string $dsid - * todo + * A string indicating the datastream for which to get the registry. + * + * @return array + * An array of associative arrays, each mapping: + * - name: A string containg a human-readable name for the entry. + * - url: A string containing the URL to which to the user will be routed. */ function hook_islandora_edit_datastream_registry($object, $dsid) { + $routes = array(); + + $routes[] = array( + 'name' => t('My Awesome Edit Route'), + 'url' => "go/edit/here/{$object->id}/{$dsid}", + ); + + return $routes; } /**