uc_cart.rules.inc 685 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * @file
  4. * Hooks and functions for uc_cart Rules integration.
  5. */
  6. /**
  7. * Implements hook_rules_event_info().
  8. */
  9. function uc_cart_rules_event_info() {
  10. $events['uc_checkout_complete'] = array(
  11. 'label' => t('Customer completes checkout'),
  12. 'group' => t('Cart'),
  13. 'variables' => array(
  14. 'order' => array(
  15. 'type' => 'uc_order',
  16. 'label' => t('Order'),
  17. ),
  18. ),
  19. );
  20. $events['uc_cart_checkout_start'] = array(
  21. 'label' => t('Customer starts checkout'),
  22. 'group' => t('Cart'),
  23. 'variables' => array(
  24. 'order' => array(
  25. 'type' => 'uc_order',
  26. 'label' => t('Order'),
  27. ),
  28. ),
  29. );
  30. return $events;
  31. }