You are here

function commerce_pado_rules_event_info in Commerce Product Add-on 7

File

./commerce_pado.rules.inc, line 7

Code

function commerce_pado_rules_event_info() {
  $items = array(
    'commerce_pado_add_to_cart' => array(
      'label' => t('After a user adds a product to the cart, with a product add-on selected'),
      'module' => 'commerce_pado',
      'group' => t('Commerce Cart'),
      'variables' => array(
        'commerce_product' => array(
          'type' => 'commerce_product',
          'label' => t('The product checked as an add-on in the add to cart form'),
        ),
        'quantity' => array(
          'label' => t('Base Product Quantity'),
          'type' => 'integer',
        ),
      ),
    ),
  );
  return $items;
}