Community Documentation

language_types

7 bootstrap.inc language_types()
8 bootstrap.inc language_types()

Returns an array of the available language types.

▾ 5 functions call 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().

File

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

Code

<?php
function language_types() {
  return array_keys(variable_get('language_types', drupal_language_types()));
}
?>
Login or register to post comments