Same name and namespace in other branches
  1. 4.6.x includes/bootstrap.inc \referer_uri()
  2. 4.7.x includes/bootstrap.inc \referer_uri()
  3. 5.x includes/bootstrap.inc \referer_uri()

Return the URI of the referring page.

2 calls to referer_uri()
statistics_exit in modules/statistics/statistics.module
Implementation of hook_exit().
watchdog in includes/bootstrap.inc
Log a system message.

File

includes/bootstrap.inc, line 832
Functions that need to be loaded on every Drupal request.

Code

function referer_uri() {
  if (isset($_SERVER['HTTP_REFERER'])) {
    return $_SERVER['HTTP_REFERER'];
  }
}