You are here

function i18n_frontpage in Internationalization 5.3

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

Language dependent front page This function will search for aliases like 'en/home', 'es/home'...

3 calls to i18n_frontpage()
i18n_get_links in ./i18n.module
Function i18n_get_links
i18n_init in ./i18n.module
Implementation of hook_init()
i18n_path in ./i18n.module
Produces i18n paths, with language prefix If path is empty or site frontpage, path = 'lang' Check for frontpage and search for alias before adding language

File

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

Code

function i18n_frontpage($lang = NULL) {
  $lang = $lang ? $lang : _i18n_get_lang();
  return i18n_get_normal_path($lang . '/' . variable_get('site_frontpage', 'node'));
}