function language_types

7.x bootstrap.inc language_types()

Returns an array of the available language types.

Return value

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

5 calls to language_types()
drupal_language_initialize in drupal/includes/bootstrap.inc
Initializes all the defined language types.
LocaleLanguageNegotiationInfoFunctionalTest::testInfoAlterations in drupal/modules/locale/locale.test
Tests alterations to language types/negotiation info.
LocaleUninstallFunctionalTest::testUninstallProcess in drupal/modules/locale/locale.test
Check if the values of the Locale variables are correct after uninstall.
locale_test_store_language_negotiation in drupal/modules/locale/tests/locale_test.module
Store the last negotiated languages.
locale_uninstall in drupal/modules/locale/locale.install
Implements hook_uninstall().
6 string references to 'language_types'
language_types_configurable in drupal/includes/language.inc
Returns only the configurable language types.
language_types_disable in drupal/includes/language.inc
Disables the given language types.
language_types_set in drupal/includes/language.inc
Updates the language type configuration.
LocaleLanguageNegotiationInfoFunctionalTest::testInfoAlterations in drupal/modules/locale/locale.test
Tests alterations to language types/negotiation info.
LocaleUninstallFunctionalTest::testUninstallProcess in drupal/modules/locale/locale.test
Check if the values of the Locale variables are correct after uninstall.

... See full list

File

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

Code

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