Browse Source

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

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

5
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']));
?>

2
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;
}

Loading…
Cancel
Save