function language_types_get_all

Returns an array of the available language types.

Return value

array An array of all language types where the keys of each are the language type name and its value is its configurability (TRUE/FALSE).

6 calls to language_types_get_all()
drupal_language_initialize in drupal/core/includes/bootstrap.inc
Initializes all the defined language types.
LanguageNegotiationInfoTest::testInfoAlterations in drupal/core/modules/language/lib/Drupal/language/Tests/LanguageNegotiationInfoTest.php
Tests alterations to language types/negotiation info.
language_test_store_language_negotiation in drupal/core/modules/language/tests/language_test.module
Store the last negotiated languages.
language_uninstall in drupal/core/modules/language/language.install
Implements hook_uninstall().
LocaleUninstallTest::testUninstallProcess in drupal/core/modules/locale/lib/Drupal/locale/Tests/LocaleUninstallTest.php
Check if the values of the Locale variables are correct after uninstall.

... See full list

File

drupal/core/includes/bootstrap.inc, line 2692
Functions that need to be loaded on every Drupal request.

Code

function language_types_get_all() {
  return array_keys(variable_get('language_types', language_types_get_default()));
}