drupal_multilingual

Versions
7
drupal_multilingual()

Return true if there is more than one language enabled.

▾ 5 functions call drupal_multilingual()

drupal_language_initialize in includes/bootstrap.inc
Initialize all the defined language types.
language_list in includes/bootstrap.inc
Get a list of languages set up indexed by the specified key
locale_block_view in modules/locale/locale.module
Implement hook_block_view().
locale_entity_info_alter in modules/locale/locale.module
Implement hook_entity_info_alter().
locale_form_alter in modules/locale/locale.module
Implement hook_form_alter().

Code

includes/bootstrap.inc, line 1786

<?php
function drupal_multilingual() {
  static $multilingual;
  if (!isset($multilingual)) {
    $multilingual = variable_get('language_count', 1) > 1;
  }
  return $multilingual;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.