From 6f57531da0219aea053655d42dab4bdff854f8bd Mon Sep 17 00:00:00 2001 From: krisbulman Date: Tue, 29 May 2012 09:22:30 -0300 Subject: [PATCH] moved call to get pid back into if statement that creates action link to remove error --- islandora.module | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/islandora.module b/islandora.module index 99b3ff7b..da0bfc58 100644 --- a/islandora.module +++ b/islandora.module @@ -234,14 +234,13 @@ function islandora_admin_paths_alter(&$paths) { $paths['*/manage*'] = TRUE; } - /** * Implements hook_menu_local_tasks_alter(). */ function islandora_menu_local_tasks_alter(&$data, $router_item, $root_path) { // Add action link 'islandora/object/%/manage/datastreams'. - $object_id = $router_item['page_arguments'][0]; if ($root_path == 'islandora/object/%/manage/datastreams') { + $object_id = $router_item['page_arguments'][0]; $item = menu_get_item("islandora/object/$object_id/manage/datastreams/add"); if ($item['access']) { $data['actions']['output'][] = array(