feature; $featurelocs = $feature->featureloc; if(!$featurelocs){ // expand the feature object to include the featureloc records. there are // two foreign key relationships with featureloc and feature (srcefeature_id and // feature_id). This will expand both $feature = tripal_core_expand_chado_vars($feature,'table','featureloc'); } // get the featurelocs. if only one featureloc exists then we want to convert // the object into an array, otherwise the value is an array $ffeaturelocs = $feature->featureloc->feature_id; if (!$ffeaturelocs) { $ffeaturelocs = array(); } elseif (!is_array($ffeaturelocs)) { $ffeaturelocs = array($ffeaturelocs); } $featureloc_sequences = tripal_feature_load_featureloc_sequences ($feature->feature_id,$ffeaturelocs); if(count($featureloc_sequences) > 0){ foreach($featureloc_sequences as $src => $attrs){ ?>