From d4163aa022420879c73d17accbc96325c572059d Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 13 Apr 2015 15:54:19 -0300 Subject: [PATCH] Move variable creation, 'cause derp. --- theme/theme.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/theme/theme.inc b/theme/theme.inc index 5b9302ae..1ddad1db 100644 --- a/theme/theme.inc +++ b/theme/theme.inc @@ -263,6 +263,7 @@ function islandora_objects_object_mapper($object_id) { $module_path = drupal_get_path('module', 'islandora'); + $url = "islandora/object/{$object_id}"; $img = array( '#theme' => 'image', '#path' => ($o && islandora_datastream_access(ISLANDORA_VIEW_OBJECTS, $o['TN']) ? @@ -273,7 +274,6 @@ function islandora_objects_object_mapper($object_id) { $img = drupal_render($img); if ($o) { - $url = "islandora/object/{$o->id}"; $link_options = array('html' => TRUE, 'attributes' => array('title' => $o->label)); $description = NULL; if (isset($o['DC']) && islandora_datastream_access(ISLANDORA_VIEW_OBJECTS, $o['DC'])) { @@ -292,7 +292,6 @@ function islandora_objects_object_mapper($object_id) { ); } else { - $url = "islandora/object/$object_id"; $link_options = array('html' => TRUE, 'attributes' => array('title' => t('(Unknown)'))); return array( 'label' => t('(Unknown)'),