From be08d60bbc6335f70ec6cf57e75fa805bbad89b8 Mon Sep 17 00:00:00 2001 From: Paul Pound Date: Wed, 4 Jul 2012 14:16:08 -0300 Subject: [PATCH] moved theme_table to template file so we can modify the table in preprocess function --- theme/islandora-object-edit.tpl.php | 5 ++--- theme/islandora.theme.inc | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/theme/islandora-object-edit.tpl.php b/theme/islandora-object-edit.tpl.php index 409c9781..2d88e27e 100644 --- a/theme/islandora-object-edit.tpl.php +++ b/theme/islandora-object-edit.tpl.php @@ -44,8 +44,7 @@ //dsm($object); drupal_set_title($islandora_object->label); -//print($islandora_object->label . ' ' . $islandora_object->id); - -print ($variables['datastream_table']); +//print($islandora_object->label . ' ' . $islandora_object->id); +print (theme_table($variables['datastream_table'])); ?> diff --git a/theme/islandora.theme.inc b/theme/islandora.theme.inc index 6f4ffce4..821ddf95 100644 --- a/theme/islandora.theme.inc +++ b/theme/islandora.theme.inc @@ -39,7 +39,7 @@ function islandora_preprocess_islandora_default_edit(&$variables) { } $caption = $islandora_object->label . ' - ' . $islandora_object->id; $table = array('colgroups' => NULL, 'sticky' => TRUE, 'empty' => 'Error loading datastreams', 'caption' => $caption, 'header' => $header, 'rows' => $rows, 'attributes' => $table_attributes); - $variables['datastream_table'] = theme_table($table); + $variables['datastream_table'] = $table; }