Skip navigation
Help

hook_uc_cart_item_insert

7 uc_cart.api.php hook_uc_cart_item_insert($entity)

Act on cart item entities when inserted.

Parameters

$entity: The cart item entity object.

Related topics

1 function implements hook_uc_cart_item_insert()

File

ubercart/uc_cart/uc_cart.api.php, line 164
Hooks provided by the Cart module.

Code

function hook_uc_cart_item_insert($entity) {
  drupal_set_message(t('An item was added to your cart'));
}