You are here

public static function FieldHelper::getValue in Helper 7

2 calls to FieldHelper::getValue()
FieldHelper::viewValue in lib/FieldHelper.php
FieldHelperTestCase::testValues in tests/FieldHelperTestCase.test

File

lib/FieldHelper.php, line 16

Class

FieldHelper

Code

public static function getValue($entity_type, $entity, $field_name, $column = NULL, $delta = 0) {
  $items = static::getValues($entity_type, $entity, $field_name, $column);
  if (isset($items[$delta])) {
    return $items[$delta];
  }
}