Browse Source

Updated documentation to reflect the actual behavoir of the code.

pull/465/head
Nigel Banks 11 years ago
parent
commit
999a98c720
  1. 9
      islandora.api.php

9
islandora.api.php

@ -472,7 +472,7 @@ function hook_islandora_ingest_steps(array $form_state) {
* *
* @param array $steps * @param array $steps
* An array of steps as generated by hook_islandora_ingest_steps(). * An array of steps as generated by hook_islandora_ingest_steps().
* *
* @param array $form_state * @param array $form_state
* An array containing the Drupal form_state. * An array containing the Drupal form_state.
*/ */
@ -497,7 +497,7 @@ function hook_CMODEL_PID_islandora_ingest_steps(array $form_state) {
* *
* @param array $steps * @param array $steps
* An array of steps as generated by hook_islandora_ingest_steps(). * An array of steps as generated by hook_islandora_ingest_steps().
* *
* @param array $form_state * @param array $form_state
* An array containing the Drupal form_state. * An array containing the Drupal form_state.
*/ */
@ -638,7 +638,8 @@ function hook_CMODEL_PID_islandora_overview_object_alter(AbstractObject &$object
* module_name_derivative_creation_function($object, $force = FALSE) * module_name_derivative_creation_function($object, $force = FALSE)
* These functions must return an array in the structure of: * These functions must return an array in the structure of:
* - success: Bool denoting whether the operation was successful. * - success: Bool denoting whether the operation was successful.
* - messages: An array structure containing: * - messages: An array structure containing zero or more array's with the
* following fields:
* - message: A string passed through t() describing the * - message: A string passed through t() describing the
* outcome of the operation. * outcome of the operation.
* - message_sub: (Optional) Substitutions to be passed along to t() or * - message_sub: (Optional) Substitutions to be passed along to t() or
@ -704,7 +705,7 @@ function hook_CMODEL_PID_islandora_derivative() {
function hook_islandora_update_related_objects_properties(AbstractObject $object) { function hook_islandora_update_related_objects_properties(AbstractObject $object) {
$related_objects = get_all_children_siblings_and_friends($object); $related_objects = get_all_children_siblings_and_friends($object);
$pids_to_return = array(); $pids_to_return = array();
foreach($related_objects as $related_object) { foreach ($related_objects as $related_object) {
$pids_to_return[] = $related_object->id; $pids_to_return[] = $related_object->id;
} }
return $pids_to_return; return $pids_to_return;

Loading…
Cancel
Save