You are here

function FieldsRSIPreventor::getValue in Media Gallery 7

Same name and namespace in other branches
  1. 7.2 fields_rsi_prevention.inc \FieldsRSIPreventor::getValue()

File

./fields_rsi_prevention.inc, line 35
This file provides easier access on entity properties and methods.

Class

FieldsRSIPreventor
Decorates an entity to provide getters/setters.

Code

function getValue($field_name, $delta = 0, $language = LANGUAGE_NONE) {
  if ($item = $this
    ->getItem($field_name, $delta, $language)) {
    return $item['value'];
  }
}