Browse Source

Document a feature of hooked access, due to hook invocation.

pull/388/head
Adam Vessey 12 years ago
parent
commit
d6e67c7b34
  1. 10
      islandora.api.php

10
islandora.api.php

@ -477,10 +477,11 @@ function hook_CMODEL_PID_islandora_ingest_steps(array $form_state) {
* @param object $user * @param object $user
* A loaded user object, as the global $user variable might contain. * 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 * 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 * 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) { function hook_islandora_object_access($op, $object, $user) {
switch ($op) { switch ($op) {
@ -515,10 +516,11 @@ function hook_CMODEL_PID_islandora_object_access($op, $object, $user) {
* @param object $user * @param object $user
* A loaded user object, as the global $user variable might contain. * 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 * 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 * 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) { function hook_islandora_datastream_access($op, $object, $user) {
switch ($op) { switch ($op) {

Loading…
Cancel
Save