You are here

function language_negotiation_get_any in Drupal 7

Checks if the language negotiation provider is enabled for any language type.

Parameters

$provider_id: The language negotiation provider ID.

Return value

TRUE if there is at least one language type for which the given language provider is enabled, FALSE otherwise.

Related topics

2 calls to language_negotiation_get_any()
locale_language_from_url in includes/locale.inc
Identify language via URL prefix or domain.
locale_language_url_rewrite_session in includes/locale.inc
Rewrite URLs for the Session language provider.

File

includes/language.inc, line 258
Language Negotiation API.

Code

function language_negotiation_get_any($provider_id) {
  foreach (language_types_configurable() as $type) {
    if (language_negotiation_get($type, $provider_id)) {
      return TRUE;
    }
  }
  return FALSE;
}