function commerce_wishlist_rules_event_info in Commerce Wishlist 7.3
Same name and namespace in other branches
- 7.2 commerce_wishlist.rules.inc \commerce_wishlist_rules_event_info()
Implements hook_rules_event_info().
File
- ./
commerce_wishlist.rules.inc, line 11 - Implementation of rules hooks and actions.
Code
function commerce_wishlist_rules_event_info() {
return array(
'commerce_wishlist_product_add' => array(
'label' => t('After adding a product to wishlist'),
'help' => t('Triggers when a product has been added to wishlist.'),
'group' => t('Commerce Wishlist'),
'variables' => array(
'owner' => array(
'type' => 'user',
'label' => t('Wishlist owner'),
),
'product' => array(
'type' => 'commerce_product',
'label' => t('Product'),
),
'line_item' => array(
'type' => 'line_item',
'label' => t('Product'),
),
),
),
'commerce_wishlist_product_add_to_cart' => array(
'label' => t('After adding a wishlist product to the cart'),
'help' => t('Triggers when a wishlist product has been added to the shopping cart.'),
'group' => t('Commerce Wishlist'),
'variables' => array(
'commerce_wishlist_owner' => array(
'type' => 'user',
'label' => t('Wishlist owner'),
),
'commerce_wishlist_product' => array(
'type' => 'commerce_product',
'label' => t('Product'),
),
),
),
'commerce_wishlist_product_purchased' => array(
'label' => t('After purchasing a product from a wishlist'),
'help' => t('Triggers when a wishlist product is purchased.'),
'group' => t('Commerce Wishlist'),
'variables' => array(
'commerce_wishlist_owner' => array(
'type' => 'user',
'label' => t('Wishlist owner'),
),
'commerce_wishlist_product' => array(
'type' => 'commerce_product',
'label' => t('Product'),
),
'commerce_order' => array(
'type' => 'commerce_order',
'label' => t('The order that the product was purchased in.'),
),
),
),
'commerce_wishlist_product_delete' => array(
'label' => t('After removing a product from wishlist'),
'help' => t('Triggers when a product has been removed from a wishlist.'),
'group' => t('Commerce Wishlist'),
'variables' => array(
'commerce_wishlist' => array(
'type' => 'commerce_wishlist',
'label' => t('Wishlist'),
),
'commerce_wishlist_product' => array(
'type' => 'commerce_product',
'label' => t('Product'),
),
),
),
);
}