You are here

function uc_cart_ca_trigger in Ubercart 6.2

Implements hook_ca_trigger().

File

uc_cart/uc_cart.ca.inc, line 35
This file contains the Conditional Actions hooks and functions necessary to make the cart related entity, conditions, events, and actions work.

Code

function uc_cart_ca_trigger() {
  $triggers['uc_checkout_complete'] = array(
    '#title' => t('Customer completes checkout'),
    '#category' => t('Cart'),
    '#arguments' => array(
      'order' => array(
        '#entity' => 'uc_order',
        '#title' => t('Order'),
      ),
      'account' => array(
        '#entity' => 'user',
        '#title' => t('Customer user account'),
      ),
    ),
  );
  return $triggers;
}