function language_negotiation_get_any

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 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;
}

© 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/function/language_negotiation_get_any/7.x