Skip navigation
Help

hook_uc_order_product_delete

7 uc_order.api.php hook_uc_order_product_delete(object $order_product)

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()

Related topics

File

ubercart/uc_order/uc_order.api.php, line 487
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();
}