function field_content_languages

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

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.