You are here

function uc_coupon_theme_registry_alter in Ubercart Discount Coupons 7.2

Same name and namespace in other branches
  1. 7.3 uc_coupon.module \uc_coupon_theme_registry_alter()

Implements hook_theme_registry_alter().

File

./uc_coupon.module, line 263

Code

function uc_coupon_theme_registry_alter(&$registry) {

  // Override the default theme for the cart block content - but only if not already overridden.
  if ($registry['uc_cart_block_content']['function'] == 'theme_uc_cart_block_content') {
    $registry['uc_cart_block_content']['function'] = 'uc_coupon_theme_uc_cart_block_content';
  }
}