From d6699117bd272cc8c683c13b05905b086244b583 Mon Sep 17 00:00:00 2001 From: jonathangreen Date: Wed, 23 May 2012 18:02:52 -0300 Subject: [PATCH] Added default menu path. --- islandora.module | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/islandora.module b/islandora.module index 6f939550..2199c991 100644 --- a/islandora.module +++ b/islandora.module @@ -90,6 +90,13 @@ function islandora_menu() { 'access arguments' => array(FEDORA_INGEST), ); + $items['islandora'] = array( + 'title' => 'Islandora Repository', + 'page callback' => 'islandora_view_default_object', + 'type' => MENU_NORMAL_ITEM, + 'access arguments' => array(FEDORA_VIEW), + ); + $items['islandora/object/%'] = array( 'title' => 'Repository', 'page callback' => 'islandora_view_object', @@ -376,6 +383,11 @@ function islandora_purge_datastream($object_id, $datastream_id) { module_invoke_all('islandora_post_purge_datastream', $fedora_object, $datastream_id); //notify modules post deletion } +function islandora_view_default_object() { + $pid = variable_get('islandora_repository_pid', 'islandora:root'); + return islandora_view_object($pid); +} + /** * The view entry point. modules should implement hook_islandora_view_object for the Fedora Content models that * there modules want to provide a view for.