You are here

function markup_field_formatter_view in Markup 7

Implements hook_field_formatter_view().

File

./markup.module, line 72
Defines a field type for displaying markup on the node/edit form.

Code

function markup_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
  $element = array();
  foreach ($items as $delta => $item) {
    $element[$delta]['#markup'] = $item['markup'];
  }
  return $element;
}