You are here

function i18n_language_content in Internationalization 7

Get content language, make sure it is initialized.

1 call to i18n_language_content()
i18n_language_context in ./i18n.module
Get / set language from current context / content.

File

./i18n.module, line 108
Internationalization (i18n) module.

Code

function i18n_language_content() {
  if (empty($GLOBALS[LANGUAGE_TYPE_CONTENT])) {

    // We don't have language yet, initialize the language system and retry
    drupal_bootstrap(DRUPAL_BOOTSTRAP_LANGUAGE);
  }
  return $GLOBALS[LANGUAGE_TYPE_CONTENT];
}