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