Skip navigation
Help

hook_uc_cart_item_presave

7 uc_cart.api.php hook_uc_cart_item_presave($entity)

Act on a cart item before it is about to be created or updated.

Parameters

$entity: The cart item entity object.

Related topics

File

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

Code

function hook_uc_cart_item_presave($entity) {
  $entity->changed = REQUEST_TIME;
}