fields('t') ->condition('template_id', $node->template->template_id, '=') ->execute() ->fetchObject(); $template->template_array = unserialize($template->template_array); // Summarize Template $fields = []; $constants = []; foreach ($template->template_array as $priority => $table_array) { if (!is_array($table_array)) { continue; } $table = $table_array['table']; $record = $table_array['record_id']; foreach ($table_array['fields'] as $field) { if (preg_match('/table field/', $field['type'])) { $field['table'] = $table; $field['record'] = $record; $sheet = 0;//$field['spreadsheet sheet']; $column = $field['spreadsheet column']; $fields[$sheet . '-' . $column][] = $field; } elseif ($field['type'] == 'constant') { $field['table'] = $table; $field['record'] = $record; $constants[] = $field; } } } ?>

Constants

$headers, 'rows' => $rows, 'attributes' => [ 'id' => 'tripal_bulk_loader-table-constants', 'class' => 'tripal-data-table', ], 'sticky' => FALSE, 'caption' => '', 'colgroups' => [], 'empty' => '', ]; print theme_table($table); } ?>

Data Columns

$headers, 'rows' => $rows, 'attributes' => [ 'id' => 'tripal_bulk_loader-table-columns', 'class' => 'tripal-data-table', ], 'sticky' => FALSE, 'caption' => '', 'colgroups' => [], 'empty' => '', ]; print theme_table($table); }