From 582d735f07c8f1d416dcc23089707f676d043941 Mon Sep 17 00:00:00 2001 From: Adam Vessey Date: Thu, 17 May 2012 14:34:53 -0300 Subject: [PATCH] Minor cleanup. --- fedora_repository.module | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/fedora_repository.module b/fedora_repository.module index 8642de9c..351ad359 100644 --- a/fedora_repository.module +++ b/fedora_repository.module @@ -986,18 +986,18 @@ function fedora_repository_islandora_tabs($content_models, $pid, $page_number) { } } - // Add a 'manage object' tab for all objects, where detailed list of content is shown. - // XXX: Perhaps this should be extracted into its own object? - module_load_include('inc', 'fedora_repository', 'plugins/FedoraObjectDetailedContent'); - $obj = new FedoraObjectDetailedContent($pid); - //can disable showing the object details tab in admin UI - if (variable_get('fedora_repository_show_object_details_tab', TRUE)) { + if (variable_get('fedora_repository_show_object_details_tab', TRUE)) { + // Add a 'manage object' tab for all objects, where detailed list of content is shown. + // XXX: Perhaps this should be extracted into its own object? + module_load_include('inc', 'fedora_repository', 'plugins/FedoraObjectDetailedContent'); + $obj = new FedoraObjectDetailedContent($pid); + $object_details = $obj->showFieldSets(); - $cmodel_tabs = array_merge($cmodels_tabs, $object_details); + $cmodels_tabs = array_merge($cmodels_tabs, $object_details); } - return array_merge($cmodels_tabs, $object_details); + return $cmodels_tabs; } /**