Browse Source

Move variable creation, 'cause derp.

pull/604/head
Adam 10 years ago
parent
commit
d4163aa022
  1. 3
      theme/theme.inc

3
theme/theme.inc

@ -263,6 +263,7 @@ function islandora_objects_object_mapper($object_id) {
$module_path = drupal_get_path('module', 'islandora'); $module_path = drupal_get_path('module', 'islandora');
$url = "islandora/object/{$object_id}";
$img = array( $img = array(
'#theme' => 'image', '#theme' => 'image',
'#path' => ($o && islandora_datastream_access(ISLANDORA_VIEW_OBJECTS, $o['TN']) ? '#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); $img = drupal_render($img);
if ($o) { if ($o) {
$url = "islandora/object/{$o->id}";
$link_options = array('html' => TRUE, 'attributes' => array('title' => $o->label)); $link_options = array('html' => TRUE, 'attributes' => array('title' => $o->label));
$description = NULL; $description = NULL;
if (isset($o['DC']) && islandora_datastream_access(ISLANDORA_VIEW_OBJECTS, $o['DC'])) { if (isset($o['DC']) && islandora_datastream_access(ISLANDORA_VIEW_OBJECTS, $o['DC'])) {
@ -292,7 +292,6 @@ function islandora_objects_object_mapper($object_id) {
); );
} }
else { else {
$url = "islandora/object/$object_id";
$link_options = array('html' => TRUE, 'attributes' => array('title' => t('(Unknown)'))); $link_options = array('html' => TRUE, 'attributes' => array('title' => t('(Unknown)')));
return array( return array(
'label' => t('(Unknown)'), 'label' => t('(Unknown)'),

Loading…
Cancel
Save