瀏覽代碼

Bulk Loader: fixed template summary display on node

Lacey Sanderson 11 年之前
父節點
當前提交
f272c7cbe5
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      tripal_bulk_loader/theme/tripal_bulk_loader_template.tpl.php

+ 11 - 0
tripal_bulk_loader/theme/tripal_bulk_loader_template.tpl.php

@@ -1,4 +1,15 @@
 <?php
+
+  // Retrieve Template
+  $template = db_select('tripal_bulk_loader_template', 't')
+    ->fields('t')
+    ->condition('template_id', $variables['template_id'], '=')
+    ->execute()
+    ->fetchObject();
+
+  $template->template_array = unserialize($template->template_array);
+
+  // Summarize Template
 	$fields = array();
 	$constants = array();
 	foreach ($template->template_array as $priority => $table_array) {