function language_types_get_default

Returns a list of the built-in language types.

Return value

array An array of key-values pairs where the key is the language type name and the value is its configurability (TRUE/FALSE).

5 calls to language_types_get_default()
LanguageNegotiationInfoTest::testInfoAlterations in drupal/core/modules/language/lib/Drupal/language/Tests/LanguageNegotiationInfoTest.php
Tests alterations to language types/negotiation info.
language_types_disable in drupal/core/includes/language.inc
Disables the given language types.
language_types_get_all in drupal/core/includes/bootstrap.inc
Returns an array of the available language types.
language_types_get_configurable in drupal/core/includes/language.inc
Returns only the configurable language types.
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.

File

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

Code

function language_types_get_default() {
  return array(
    LANGUAGE_TYPE_INTERFACE => TRUE,
    LANGUAGE_TYPE_CONTENT => FALSE,
    LANGUAGE_TYPE_URL => FALSE,
  );
}