You are here

function entity_metadata_locale_get_languages in Entity API 7

Getter callback for getting global languages.

1 string reference to 'entity_metadata_locale_get_languages'
entity_metadata_locale_entity_property_info_alter in modules/locale.info.inc
Implements hook_entity_property_info_alter() on top of locale module.

File

modules/callbacks.inc, line 111
Provides various callbacks for the whole core module integration.

Code

function entity_metadata_locale_get_languages($data, array $options, $name) {
  return isset($GLOBALS[$name]) ? $GLOBALS[$name]->language : NULL;
}