1 language.inc language_types_info()

Returns all the defined language types.

Return value

An associative array of language type information arrays keyed by type: names. Based on information from hook_language_types_info().

See also

hook_language_types_info().

Related topics

File

core/includes/language.inc, line 150
Language Negotiation API.

Code

function language_types_info() {
  $language_types = &backdrop_static(__FUNCTION__);

  if (!isset($language_types)) {
    $language_types = module_invoke_all('language_types_info');
    // Let other modules alter the list of language types.
    backdrop_alter('language_types_info', $language_types);
  }

  return $language_types;
}