You are here

function variable_language in Variable 6

Get global language object.

Initialize the language system if needed as we absolutely need a language here

2 calls to variable_language()
variable_build_info in ./variable.inc
Build variable information, which is cached by language
variable_status in ./variable.module
Get/set variable global status

File

./variable.module, line 251
Variable API module

Code

function variable_language() {
  global $language;
  if (!isset($language)) {
    drupal_bootstrap(DRUPAL_BOOTSTRAP_LANGUAGE);
  }
  return $language;
}