function language_negotiation_get_any

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 language.inc language_negotiation_get_any($provider_id)
cle7 language.inc language_negotiation_get_any($provider_id)
elmsmedia7 language.inc language_negotiation_get_any($provider_id)
icor7 language.inc language_negotiation_get_any($provider_id)
meedjum_blog7 language.inc language_negotiation_get_any($provider_id)
mooc7 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

3 calls to language_negotiation_get_any()
ckeditor_link_get_languages in sites/all/modules/ulmus/ckeditor_link/ckeditor_link.module
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;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.