You are here

function i18n_init in Internationalization 6

Same name and namespace in other branches
  1. 5.3 i18n.module \i18n_init()
  2. 5 i18n.module \i18n_init()
  3. 5.2 i18n.module \i18n_init()

Implementation of hook_init().

Special fix for site_frontpage, that may have been used before the language variables are loaded.

File

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

Code

function i18n_init() {

  // If not in bootstrap, variable init. Otherwise we are serving a cached page so we don't need anything else.
  if (!_i18n_is_bootstrap()) {
    _i18n_init(TRUE);
    _i18n_init_mode();
  }
}