You are here

function visitors_get_referer in Visitors 7.0

Same name and namespace in other branches
  1. 8 visitors.exit.inc \visitors_get_referer()
  2. 7.2 visitors.exit.inc \visitors_get_referer()
  3. 7 visitors.exit.inc \visitors_get_referer()

Get the address of the page (if any) which referred the user agent to the current page.

Return value

string referer, or empty string if referer does not exist

File

./visitors.exit.inc, line 89
Implements of hook_exit().

Code

function visitors_get_referer() {
  return isset($_SERVER['HTTP_REFERER']) ? urldecode($_SERVER['HTTP_REFERER']) : '';
}