You are here

function uc_cart_event_info in Ubercart 5

File

uc_cart/uc_cart_workflow.inc, line 28
This file contains the Workflow-ng hooks and functions necessary to make the cart related entity, conditions, events, and actions work.

Code

function uc_cart_event_info() {
  $order_arg = array(
    '#entity' => 'order',
    '#label' => t('Order'),
  );
  $events['checkout_complete'] = array(
    '#label' => t('Customer completes checkout'),
    '#module' => t('Cart'),
    '#arguments' => array(
      'order' => $order_arg,
      'account' => array(
        '#entity' => 'user',
        '#label' => t('customer user account'),
      ),
    ),
  );
  return $events;
}