You are here

function hook_uc_order_product_delete in Ubercart 7.3

Same name and namespace in other branches
  1. 8.4 uc_order/uc_order.api.php \hook_uc_order_product_delete()

Responds after order product deletion.

This hook is invoked after the order product has been removed from the database.

Parameters

object $order_product: The order product that is being deleted.

See also

hook_entity_delete()

hook_uc_order_edit_form_product_remove()

File

uc_order/uc_order.api.php, line 486
Hooks provided by the Order module.

Code

function hook_uc_order_product_delete(object $order_product) {
  db_delete('mytable')
    ->condition('opid', entity_id('uc_order_product', $order_product))
    ->execute();
}