Browse Source

Merge pull request #145 from ppound/7.x

moved theme_table to template file so we can modify the table in preproc...
pull/165/head
Jonathan Green 13 years ago
parent
commit
bd55f46e0b
  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