From 59537aa751ba8be5e35dfaa148bcced218d8e5b5 Mon Sep 17 00:00:00 2001 From: William Panting Date: Fri, 14 Sep 2012 11:14:41 -0300 Subject: [PATCH 1/2] ISLANDORA-731 Starting API documentation. --- fedora_repository.api.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 fedora_repository.api.php diff --git a/fedora_repository.api.php b/fedora_repository.api.php new file mode 100644 index 00000000..16b3d36d --- /dev/null +++ b/fedora_repository.api.php @@ -0,0 +1,31 @@ + 'tabpage', + '#title' => t('A TITLE'), + '#content' => 'content') + ); + + return $tabset; +} From 20ec1b7e9a9ca50f612cc931810605d4fba9929b Mon Sep 17 00:00:00 2001 From: William Panting Date: Fri, 14 Sep 2012 11:17:18 -0300 Subject: [PATCH 2/2] ISLANDORA-731 missed page_number parameter for islandora_tabs hook documentation. --- fedora_repository.api.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fedora_repository.api.php b/fedora_repository.api.php index 16b3d36d..82bfccca 100644 --- a/fedora_repository.api.php +++ b/fedora_repository.api.php @@ -15,11 +15,13 @@ * if the object actualy exists with a ISLANDORACM datastream. * @param string $pid * The Fedora PID of the object who's page is firing the hook. + * @param int $page_number + * Page number for collection views. * * @return array * $tabset a tab definition. */ -function hook_islandora_tabs($content_models, $pid) { +function hook_islandora_tabs($content_models, $pid, $page_number) { $tabset['A TAB'] = array( '#type' => 'tabpage',