field['settings']['chado_table']; $content = ''; foreach ($items as $delta => $item) { if (!$item['value']) { continue; } $content = $item['value']['vocabulary'] . ':' . $item['value']['accession']; if ($item['value']['URL']) { $content = l($content, $item['value']['URL'], array('attributes' => array('target' => '_blank'))); } $element[$delta] = array( '#type' => 'markup', '#markup' => $content, ); } if (count($element) == 0) { $element[0] = array( '#type' => 'markup', '#markup' => '', ); } } }