You are here

function uc_2checkout_ucga_display in Ubercart 5

Same name and namespace in other branches
  1. 8.4 payment/uc_2checkout/uc_2checkout.module \uc_2checkout_ucga_display()
  2. 6.2 payment/uc_2checkout/uc_2checkout.module \uc_2checkout_ucga_display()
  3. 7.3 payment/uc_2checkout/uc_2checkout.module \uc_2checkout_ucga_display()

Implementation of hook_ucga_display().

File

payment/uc_2checkout/uc_2checkout.module, line 32
Integrates 2Checkout.com's redirected payment service.

Code

function uc_2checkout_ucga_display() {

  // Tell UC Google Analytics to display the e-commerce JS on the custom
  // order completion page for this module.
  if (arg(0) == 'cart' && arg(1) == '2checkout' && arg(2) == 'complete') {
    return TRUE;
  }
}