field_default_view
function field_default_view
field_default_view($entity_type, $entity, $field, $instance, $langcode, $items, $display)
Builds a renderable array for one field on one entity instance.
Parameters
$entity_type: The type of $entity; e.g. 'node' or 'user'.
$entity: A single object of type $entity_type.
$field: The field structure for the operation.
$instance: An array containing each field on $entity's bundle.
$langcode: The language associated to $items.
$items: Array of field values already loaded for the entities, keyed by entity id.
$display: Can be either:
- the name of a view mode;
- or an array of custom display settings, as found in the 'display' entry of $instance definitions.
File
- modules/field/<