language.inc

Language Negotiation API.

See also

http://drupal.org/node/1497272

File

includes/language.inc

Functions

Name Description
language_fallback_get_candidates Returns the possible fallback languages ordered by language weight.
language_from_default Returns the default language negotiation provider.
language_initialize Chooses a language based on language negotiation provider settings.
language_negotiation_get Checks whether a language negotiation provider is enabled for a language type.
language_negotiation_get_any Checks if the language negotiation provider is enabled for any language type.
language_negotiation_get_switch_links Returns the language switch links for the given language.
language_negotiation_info Returns all the defined language negotiation providers.
language_negotiation_purge Removes any unused language negotiation providers from the configuration.
language_negotiation_set Saves a list of language negotiation providers.
language_provider_invoke Helper function used to cache the language negotiation providers results.
language_provider_weight Returns the passed language negotiation provider weight or a default value.
language_types_configurable Returns only the configurable language types.
language_types_disable Disables the given language types.
language_types_info Returns all the defined language types.
language_types_set Updates the language type configuration.
language_url_split_prefix Splits the given path into prefix and actual path.

Constants

Name Description
LANGUAGE_NEGOTIATION_DEFAULT No language negotiation. The default language is used.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!language.inc/7.x