function drupal_language_types

7.x bootstrap.inc drupal_language_types()

Returns a list of the built-in language types.

Return value

An array of key-values pairs where the key is the language type and the value is its configurability.

5 calls to drupal_language_types()
language_types in drupal-7.x/includes/bootstrap.inc
Returns an array of the available language types.
language_types_configurable in drupal-7.x/includes/language.inc
Returns only the configurable language types.
language_types_disable in drupal-7.x/includes/language.inc
Disables the given language types.
LocaleLanguageNegotiationInfoFunctionalTest::testInfoAlterations in drupal-7.x/modules/locale/locale.test
Tests alterations to language types/negotiation info.
LocaleUninstallFunctionalTest::testUninstallProcess in drupal-7.x/modules/locale/locale.test
Check if the values of the Locale variables are correct after uninstall.

File

drupal-7.x/includes/bootstrap.inc, line 2677
Functions that need to be loaded on every Drupal request.

Code

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