function visitors_get_referer in Visitors 8
Same name and namespace in other branches
- 7.2 visitors.exit.inc \visitors_get_referer()
- 7 visitors.exit.inc \visitors_get_referer()
- 7.0 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
1 call to visitors_get_referer()
- visitors_exit in ./
visitors.exit.inc - Implements of hook_exit().
File
- ./
visitors.exit.inc, line 92 - Implements of hook_exit().
Code
function visitors_get_referer() {
return isset($_SERVER['HTTP_REFERER']) ? urldecode($_SERVER['HTTP_REFERER']) : '';
}