referer_uri

Versions
4.6 – 6
referer_uri()

Return the URI of the referring page.

Code

includes/bootstrap.inc, line 727

<?php
function referer_uri() {
  if (isset($_SERVER['HTTP_REFERER'])) {
    return $_SERVER['HTTP_REFERER'];
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.