function drupal_multilingual
Returns TRUE if there is more than one language enabled.
Return value
TRUE if more than one language is enabled.
8 calls to drupal_multilingual()
- drupal_language_initialize in includes/
bootstrap.inc - Initializes all the defined language types.
- drupal_render_cid_parts in includes/
common.inc - Returns cache ID parts for building a cache ID.
- language_list in includes/
bootstrap.inc - Returns a list of installed languages, indexed by the specified key.
- locale_block_view in modules/
locale/ locale.module - Implements hook_block_view().
- locale_form_alter in modules/
locale/ locale.module - Implements hook_form_alter().
File
-
includes/
bootstrap.inc, line 3083
Code
function drupal_multilingual() {
// The "language_count" variable stores the number of enabled languages to
// avoid unnecessarily querying the database when building the list of
// enabled languages on monolingual sites.
return variable_get('language_count', 1) > 1;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.