1234567891011121314151617181920212223 |
- <?php
- class data__accession_formatter extends ChadoFieldFormatter {
- // The default lable for this field.
- public static $default_label = 'Site Accession';
- // The list of field types for which this formatter is appropriate.
- public static $field_types = array('data__accession');
- /**
- * @see TripalFieldFormatter::view()
- */
- public function view(&$element, $entity_type, $entity, $langcode, $items, $display) {
- foreach ($items as $delta => $item) {
- $element[$delta] = array(
- '#type' => 'markup',
- '#markup' => $item['value'],
- );
- }
- }
- }
|