Browse Source

moved theme_table to template file so we can modify the table in preprocess function

pull/145/head
Paul Pound 12 years ago
parent
commit
be08d60bbc
  1. 3
      theme/islandora-object-edit.tpl.php
  2. 2
      theme/islandora.theme.inc

3
theme/islandora-object-edit.tpl.php

@ -45,7 +45,6 @@
drupal_set_title($islandora_object->label); drupal_set_title($islandora_object->label);
//print($islandora_object->label . ' ' . $islandora_object->id); //print($islandora_object->label . ' ' . $islandora_object->id);
print (theme_table($variables['datastream_table']));
print ($variables['datastream_table']);
?> ?>

2
theme/islandora.theme.inc

@ -39,7 +39,7 @@ function islandora_preprocess_islandora_default_edit(&$variables) {
} }
$caption = $islandora_object->label . ' - ' . $islandora_object->id; $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); $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;
} }

Loading…
Cancel
Save