You are here

public static function FieldHelper::viewValues in Helper 7

1 call to FieldHelper::viewValues()
FieldHelper::viewValue in lib/FieldHelper.php

File

lib/FieldHelper.php, line 44

Class

FieldHelper

Code

public static function viewValues($entity_type, $entity, $field_name, $display = array(), $langcode = NULL) {
  if (module_exists('render_cache') && function_exists('render_cache_view_field')) {
    return render_cache_view_field($entity_type, $entity, $field_name, $display, $langcode);
  }
  else {
    return field_view_field($entity_type, $entity, $field_name, $display, $langcode);
  }
}