Community Documentation

drupal_language_types

7 bootstrap.inc drupal_language_types()
8 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 functions call drupal_language_types()

language_types in includes/bootstrap.inc
Returns an array of the available language types.
language_types_configurable in includes/language.inc
Return only the configurable language types.
language_types_disable in includes/language.inc
Disable 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 2569
Functions that need to be loaded on every Drupal request.

Code

<?php
function drupal_language_types() {
  return array(
    LANGUAGE_TYPE_INTERFACE => TRUE, 
    LANGUAGE_TYPE_CONTENT => FALSE, 
    LANGUAGE_TYPE_URL => FALSE,
  );
}
?>
Login or register to post comments