function multifield_field_formatter_view in Multifield 7
Same name and namespace in other branches
- 7.2 multifield.field.inc \multifield_field_formatter_view()
Implements hook_field_formatter_view().
File
- ./
multifield.field.inc, line 905 - 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;
}