You are here

function eck_language_property_entity_info in Entity Construction Kit (ECK) 7.2

Same name and namespace in other branches
  1. 7.3 plugins/property_behavior/language.inc \eck_language_property_entity_info()

Letting the system know what property is the language key of the entity.

1 string reference to 'eck_language_property_entity_info'
language.inc in plugins/property_behavior/language.inc

File

plugins/property_behavior/language.inc, line 22

Code

function eck_language_property_entity_info($property, $var) {
  $info = $var;

  // Nodes also put its language into entity keys, so we do the same.
  $info['entity keys']['language'] = $property;
  return $info;
}