From 1a10f5c4a8f21a5864ec98d8b2e66060eeac85e8 Mon Sep 17 00:00:00 2001 From: Mitchell MacKenzie Date: Fri, 18 May 2012 13:33:11 -0300 Subject: [PATCH] Remove dupe islandora/ingest menu item --- islandora.module | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/islandora.module b/islandora.module index 4f139e95..2601047b 100644 --- a/islandora.module +++ b/islandora.module @@ -78,13 +78,14 @@ function islandora_menu() { 'type' => MENU_CALLBACK, 'access arguments' => array(FEDORA_VIEW), ); - + $items['islandora/ingest/%'] = array( - 'title' => 'Ingest object', - 'page callback' => 'islandora_ingest_object', + 'title' => t('Ingest object'), + 'page callback' => 'islandora_ingest_callback', 'page arguments' => array(2), - 'type' => MENU_NORMAL_ITEM, - 'access arguments' => array(FEDORA_INGEST) + 'file' => 'includes/ingest-menu.inc', + 'type' => MENU_CALLBACK, + 'access arguments' => array(FEDORA_INGEST), ); $items['islandora/object/%'] = array( @@ -165,15 +166,6 @@ function islandora_menu() { 'access arguments' => array(FEDORA_PURGE), ); - $items['islandora/ingest/%'] = array( - 'title' => t('Ingest object'), - 'page callback' => 'islandora_ingest_callback', - 'page arguments' => array(2), - 'file' => 'includes/ingest-menu.inc', - 'type' => MENU_CALLBACK, - 'access arguments' => array(FEDORA_INGEST) - ); - return $items; }