You are here

function drupal_language_types in Drupal 7

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 includes/bootstrap.inc
Returns an array of the available language types.
language_types_configurable in includes/language.inc
Returns only the configurable language types.
language_types_disable in includes/language.inc
Disables the given language types.
LocaleLanguageNegotiationInfoFunctionalTest::testInfoAlterations in modules/locale/locale.test
Tests alterations to language types/negotiation info.
LocaleUninstallFunctionalTest::testUninstallProcess in modules/locale/locale.test
Check if the values of the Locale variables are correct after uninstall.

File

includes/bootstrap.inc, line 3001
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,
  );
}