You are here

function field_content_languages in Drupal 7

Returns available content languages.

The languages that may be associated to fields include LANGUAGE_NONE.

Return value

An array of language codes.

Related topics

4 calls to field_content_languages()
FieldTranslationsTestCase::testFieldAvailableLanguages in modules/field/tests/field.test
Ensures that only valid values are returned by field_available_languages().
FieldTranslationsTestCase::testFieldDisplayLanguage in modules/field/tests/field.test
Tests display language logic for translatable fields.
field_available_languages in modules/field/field.multilingual.inc
Collects the available languages for the given entity type and field.
field_valid_language in modules/field/field.multilingual.inc
Ensures that a given language code is valid.

File

modules/field/field.multilingual.inc, line 157
Functions implementing Field API multilingual support.

Code

function field_content_languages() {
  return array_keys(language_list() + array(
    LANGUAGE_NONE => NULL,
  ));
}