You are here

function _i18n_get_original_path in Internationalization 5.3

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

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

2 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

File

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

Code

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