You are here

function language_types in Drupal 7

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 includes/bootstrap.inc
Initializes all the defined 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.
locale_test_store_language_negotiation in modules/locale/tests/locale_test.module
Store the last negotiated languages.
locale_uninstall in modules/locale/locale.install
Implements hook_uninstall().
6 string references to '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.
language_types_set in includes/language.inc
Updates the language type configuration.
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.

... See full list

File

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

Code

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