function commerce_product_bundle_rules_event_info in Commerce Product Bundle 7.2
Same name and namespace in other branches
- 7 commerce_product_bundle.rules.inc \commerce_product_bundle_rules_event_info()
Implements hook_rules_event_info().
File
- ./
commerce_product_bundle.rules.inc, line 18 - Rules integration for product bundle.
Code
function commerce_product_bundle_rules_event_info() {
$events = array();
$events['commerce_product_bundle_calc'] = array(
'label' => t('Sub Product Price Calculation'),
'group' => t('Commerce Product Bundle'),
'variables' => array(
'line_item' => array(
'type' => 'commerce_line_item',
'label' => t('sub line item'),
),
'commerce_order' => array(
'type' => 'commerce_order',
'label' => t('Order'),
),
),
'access callback' => 'commerce_order_rules_access',
);
return $events;
}