function hook_uc_cart_item_presave in Ubercart 7.3
Same name and namespace in other branches
- 8.4 uc_cart/uc_cart.api.php \hook_uc_cart_item_presave()
Act on a cart item before it is about to be created or updated.
Parameters
$entity: The cart item entity object.
File
- uc_cart/
uc_cart.api.php, line 153 - Hooks provided by the Cart module.
Code
function hook_uc_cart_item_presave($entity) {
$entity->changed = REQUEST_TIME;
}