You are here

function uc_coupon_purchase_ca_trigger in Ubercart Discount Coupons 6

Implementation of hook_ca_trigger().

File

uc_coupon_purchase/uc_coupon_purchase.ca.inc, line 118

Code

function uc_coupon_purchase_ca_trigger() {
  $triggers['uc_coupon_purchase'] = array(
    '#title' => t('Customer purchases a coupon'),
    '#category' => t('Notification'),
    '#arguments' => array(
      'order' => array(
        '#entity' => 'uc_order',
        '#title' => t('Order'),
      ),
      'coupon' => array(
        '#entity' => 'uc_coupon',
        '#title' => t('Coupon'),
      ),
    ),
  );
  return $triggers;
}