You are here

function _variable_language in Variable 7

Same name and namespace in other branches
  1. 7.2 variable.module \_variable_language()

Get global language object.

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

1 call to _variable_language()
_variable_options in ./variable.module
Normalize variable options

File

./variable.module, line 577
Variable API module

Code

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