function field_content_languages

7.x field.multilingual.inc 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 drupal-7.x/modules/field/tests/field.test
Ensures that only valid values are returned by field_available_languages().
FieldTranslationsTestCase::testFieldDisplayLanguage in drupal-7.x/modules/field/tests/field.test
Tests display language logic for translatable fields.
field_available_languages in drupal-7.x/modules/field/field.multilingual.inc
Collects the available languages for the given entity type and field.
field_valid_language in drupal-7.x/modules/field/field.multilingual.inc
Ensures that a given language code is valid.

File

drupal-7.x/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));
}