Community Documentation

drupal_multilingual

7 bootstrap.inc drupal_multilingual()

Returns TRUE if there is more than one language enabled.

▾ 8 functions call 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().
locale_url_outbound_alter in modules/locale/locale.module
Implements hook_url_outbound_alter().
PathMonolingualTestCase::setUp in modules/path/path.test
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
translation_node_view in modules/translation/translation.module
Implements hook_node_view().

File

includes/bootstrap.inc, line 2580
Functions that need to be loaded on every Drupal request.

Code

<?php
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;
}
?>
Login or register to post comments