Get a renderable array for the value of a single field in an entity

Public

The field is additionally trimmed to 150 characters

Get raw version
php
  1. $body_field = field_view_field('node', $node, 'body',
  2. array(
  3. 'type' => 'text_trimmed',
  4. 'settings' => array('trim_length' => 150),
  5. )
  6. );