You are here

function _i18n_get_original_path in Internationalization 5.2

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

To get the original path. Cannot use $_GET["q"] cause it may have been already changed

3 calls to _i18n_get_original_path()
i18n_init in ./i18n.module
Implementation of hook_init()
translation_url in translation/translation.module
Produces url of translated page
_i18n_init in ./i18n.module
Minimum initialization

File

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

Code

function _i18n_get_original_path() {
  return isset($_REQUEST["q"]) ? trim($_REQUEST["q"], "/") : '';
}