function language_types_info in Drupal 7
Returns all the defined language types.
Return value
An array of language type names. The name will be used as the global variable name the language value will be stored in.
Related topics
7 calls to language_types_info()
- language_negotiation_purge in includes/
language.inc - Removes any unused language negotiation providers from the configuration.
- language_types_configurable in includes/
language.inc - Returns only the configurable language types.
- language_types_set in includes/
language.inc - Updates the language type configuration.
- LocaleLanguageNegotiationInfoFunctionalTest::checkFixedLanguageTypes in modules/
locale/ locale.test - Check that language negotiation for fixed types matches the stored one.
- locale_block_info in modules/
locale/ locale.module - Implements hook_block_info().
4 string references to 'language_types_info'
- language_negotiation_purge in includes/
language.inc - Removes any unused language negotiation providers from the configuration.
- language_types_set in includes/
language.inc - Updates the language type configuration.
- LocaleLanguageNegotiationInfoFunctionalTest::checkFixedLanguageTypes in modules/
locale/ locale.test - Check that language negotiation for fixed types matches the stored one.
- LocaleLanguageNegotiationInfoFunctionalTest::languageNegotiationUpdate in modules/
locale/ locale.test - Update language types/negotiation information.
File
- includes/
language.inc, line 110 - Language Negotiation API.
Code
function language_types_info() {
$language_types =& drupal_static(__FUNCTION__);
if (!isset($language_types)) {
$language_types = module_invoke_all('language_types_info');
// Let other modules alter the list of language types.
drupal_alter('language_types_info', $language_types);
}
return $language_types;
}