You are here

function uc_referer_uri in Ubercart 5

Same name and namespace in other branches
  1. 6.2 uc_store/uc_store.module \uc_referer_uri()
8 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_form_alter in uc_cart/uc_cart.module
Implementation of hook_form_alter().
uc_cart_links_process in uc_cart_links/uc_cart_links.module
uc_product_kit_add_to_cart in uc_product_kit/uc_product_kit.module
uc_recurring_admin_charge_form in payment/uc_recurring/uc_recurring.module

... See full list

File

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

Code

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