You are here

function uc_referer_uri in Ubercart 6.2

Same name and namespace in other branches
  1. 5 uc_store/uc_store.module \uc_referer_uri()

Provides a more reliable referer for Ubercart.

3 calls to uc_referer_uri()
uc_cart_add_item in uc_cart/uc_cart.module
Adds an item to a user's cart.
uc_cart_links_process in uc_cart_links/uc_cart_links.pages.inc
Process a cart link to fiddle with the cart and redirect the user.
uc_referer_check in uc_store/uc_store.module
Checks referers to see if they are in the allowed list.

File

uc_store/uc_store.module, line 2174
Contains global Ubercart functions and store administration functionality.

Code

function uc_referer_uri() {
  if (referer_uri() == '') {
    return isset($_SESSION['uc_referer_uri']) ? $_SESSION['uc_referer_uri'] : '';
  }
  else {
    return referer_uri();
  }
}