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().
block_admin_configure in drupal/core/modules/block/block.admin.inc
Form constructor for the block configuration form.
comment_test_entity_info_alter in drupal/core/modules/comment/tests/modules/comment_test/comment_test.module
Implements hook_entity_info_alter().
drupal_language_initialize in drupal/core/includes/bootstrap.inc
Initializes all the defined language types.
drupal_render_cid_parts in drupal/core/includes/common.inc
Returns cache ID parts for building a cache ID.

... See full list

File

drupal/core/includes/bootstrap.inc, line 2716
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;
}