function commerce_checkout_rules_event_info in Commerce Core 7
Implements hook_rules_event_info().
File
- modules/
checkout/ commerce_checkout.rules.inc, line 14 - Rules integration for the checkout process.
Code
function commerce_checkout_rules_event_info() {
$events = array();
$events['commerce_checkout_complete'] = array(
'label' => t('Completing the checkout process'),
'group' => t('Commerce Checkout'),
'variables' => array(
'commerce_order' => array(
'type' => 'commerce_order',
'label' => t('Completed order', array(), array(
'context' => 'a drupal commerce order',
)),
),
),
'access callback' => 'commerce_order_rules_access',
);
return $events;
}