Tripal v1.0 (6.x-1.0)
tripal_views_data_export.theme.inc
Go to the documentation of this file.
00001 <?php
00002 
00015 function template_preprocess_views_data_export_fasta_body(&$vars) {
00016   _views_data_export_header_shared_preprocess($vars);
00017   _views_data_export_body_shared_preprocess($vars);
00018   
00019   // get export settings
00020   $defline_tpl = $vars['options']['display']['defline_fields'];
00021 
00022   // iterate through the rows and replace the field tokens with values
00023   // to generate the definition line  
00024   foreach ($vars['themed_rows'] as $i => $fields) {
00025     $defline = $defline_tpl;
00026     foreach ($fields as $key => $value) {
00027       $defline = preg_replace("/\[$key\]/", $value, $defline);
00028     }
00029     $vars['themed_rows'][$i]['defline'] = $defline;
00030   }
00031 }
 All Classes Files Functions Variables