You are here

function multifield_field_formatter_view in Multifield 7.2

Same name and namespace in other branches
  1. 7 multifield.field.inc \multifield_field_formatter_view()

Implements hook_field_formatter_view().

File

./multifield.field.inc, line 845
Field integration for the Multifield module.

Code

function multifield_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
  $element = array();
  $settings = $display['settings'];
  foreach ($items as $delta => $item) {
    $element[$delta] = field_attach_view('multifield', $item['#pseudo_entity'], $settings['view_mode'], $langcode);
  }
  return $element;
}