You are here

function entity_metadata_language_list in Entity API 7

Callback defining an options list for language properties.

2 string references to 'entity_metadata_language_list'
entity_metadata_locale_entity_property_info_alter in modules/locale.info.inc
Implements hook_entity_property_info_alter() on top of locale module.
entity_metadata_node_entity_property_info in modules/node.info.inc
Implements hook_entity_property_info() on top of node module.

File

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

Code

function entity_metadata_language_list() {
  $list = array();
  $list[LANGUAGE_NONE] = t('Language neutral');
  foreach (language_list() as $language) {
    $list[$language->language] = t($language->name);
  }
  return $list;
}