From 74bcd0664c2f21a9cfff72c7193aa073bc859ae4 Mon Sep 17 00:00:00 2001 From: Paul Pound Date: Fri, 1 Jun 2012 09:53:56 -0300 Subject: [PATCH 1/2] updated islandora api documentation --- islandora.api.php | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/islandora.api.php b/islandora.api.php index 96b283a3..b57c1a0a 100644 --- a/islandora.api.php +++ b/islandora.api.php @@ -2,13 +2,13 @@ function hook_islandora_purge_datastream ($object_id, $datastream_id){} -function hook_islandora_purge_object($object_id) {} +function hook_islandora_purge_object($object) {} -function hook_islandora_view_object($object_id){} +function hook_islandora_view_object($object){} function hook_islandora_get_types(){} -function hook_islandora_add_datastream($object_id) {} +function hook_islandora_add_datastream($object) {} /** * creates and populates a php Fedora object. @@ -25,4 +25,20 @@ function hook_islandora_datastream_edit($object, $dsid){} * array('name' => t('Ingest Route Name'), 'url' => 'ingest_route/url', 'weight' => 0), * ); */ -function hook_islandora_ingest_registry($collection_pid) {} \ No newline at end of file +function hook_islandora_ingest_registry($collection_pid) {} + + +/** + * alter an object before it gets used further down the stack + * @param type $object + * a tuque FedoraObject + */ +function hook_islandora_object_alter ($fedora_object){} + +/** + * insert or remove rendered elements by implementing this function + * in your module + * @param type $arr + * an arr of rendered views + */ +function hook_islandora_display_alter ($arr){} \ No newline at end of file From 03b22bf39c51490e9ff9034d293e0c7436e1ebd8 Mon Sep 17 00:00:00 2001 From: Paul Pound Date: Fri, 1 Jun 2012 11:16:26 -0300 Subject: [PATCH 2/2] updated islandora.api.inc documentation --- islandora.api.php | 86 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 78 insertions(+), 8 deletions(-) diff --git a/islandora.api.php b/islandora.api.php index 87a43d0a..7231dff9 100644 --- a/islandora.api.php +++ b/islandora.api.php @@ -1,23 +1,83 @@