1.20.x language.inc language_negotiation_get_any($provider_id)

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

File

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

Code

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

  return FALSE;
}