| 7 bootstrap.inc | drupal_multilingual() |
Returns TRUE if there is more than one language enabled.
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