From d6e67c7b34bdabe8c2157f6f9fb6593f59ed2062 Mon Sep 17 00:00:00 2001 From: Adam Vessey Date: Tue, 20 Aug 2013 17:45:53 +0000 Subject: [PATCH] Document a feature of hooked access, due to hook invocation. --- islandora.api.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/islandora.api.php b/islandora.api.php index fe12ea21..6d25bae3 100644 --- a/islandora.api.php +++ b/islandora.api.php @@ -477,10 +477,11 @@ function hook_CMODEL_PID_islandora_ingest_steps(array $form_state) { * @param object $user * A loaded user object, as the global $user variable might contain. * - * @return bool|NULL + * @return bool|NULL|array * Either boolean TRUE or FALSE to explicitly allow or deny the operation on * the given object, or NULL to indicate that we are making no assertion - * about the outcome. + * about the outcome. Can also be an array containing multiple + * TRUE/FALSE/NULLs, due to how hooks work. */ function hook_islandora_object_access($op, $object, $user) { switch ($op) { @@ -515,10 +516,11 @@ function hook_CMODEL_PID_islandora_object_access($op, $object, $user) { * @param object $user * A loaded user object, as the global $user variable might contain. * - * @return bool|NULL + * @return bool|NULL|array * Either boolean TRUE or FALSE to explicitly allow or deny the operation on * the given object, or NULL to indicate that we are making no assertion - * about the outcome. + * about the outcome. Can also be an array containing multiple + * TRUE/FALSE/NULLs, due to how hooks work. */ function hook_islandora_datastream_access($op, $object, $user) { switch ($op) {