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-7.x/
includes/ bootstrap.inc - Initializes all the defined 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.
- locale_test_store_language_negotiation in drupal-7.x/
modules/ locale/ tests/ locale_test.module - Store the last negotiated languages.
- locale_uninstall in drupal-7.x/
modules/ locale/ locale.install - Implements hook_uninstall().
6 string references to '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.
- language_types_set in drupal-7.x/
includes/ language.inc - Updates the language type configuration.
- 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 2705 - Functions that need to be loaded on every Drupal request.
Code
function language_types() {
return array_keys(variable_get('language_types', drupal_language_types()));
}