function language_multilingual

Returns TRUE if there is more than one language enabled.

Return value

bool TRUE if more than one language is enabled.

16 calls to language_multilingual()
AccountFormController::form in drupal/core/modules/user/lib/Drupal/user/AccountFormController.php
Overrides Drupal\Core\Entity\EntityFormController::form().
BlockFormController::form in drupal/core/modules/block/lib/Drupal/block/BlockFormController.php
Overrides \Drupal\Core\Entity\EntityFormController::form().
comment_test_entity_info_alter in drupal/core/modules/comment/tests/modules/comment_test/comment_test.module
Implements hook_entity_info_alter().
drupal_render_cid_parts in drupal/core/includes/common.inc
Returns cache ID parts for building a cache ID.
EntityFormController::getFormLangcode in drupal/core/lib/Drupal/Core/Entity/EntityFormController.php
Implements \Drupal\Core\Entity\EntityFormControllerInterface::getFormLangcode().

... See full list

File

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

Code

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