You are here

public static function FieldHelper::getValueDelta in Helper 7

Deprecated

Use FieldHelper::getValues() and array_search().

File

lib/FieldHelper.php, line 33

Class

FieldHelper

Code

public static function getValueDelta($entity_type, $entity, $field_name, $column, $value) {
  $items = static::getValues($entity_type, $entity, $field_name, $column);
  return array_search($value, $items);
}