diff --git a/uc_order/uc_order.module b/uc_order/uc_order.module index bcb43cc..6d7fd19 100644 --- a/uc_order/uc_order.module +++ b/uc_order/uc_order.module @@ -2213,6 +2213,12 @@ function uc_order_action_info() { 'aggregate' => TRUE, 'configurable' => FALSE, ), + 'uc_order_action_delete' => array( + 'label' => t('Delete order'), + 'type' => 'uc_order', + 'configurable' => FALSE, + 'behavior' => array('deletes_property'), + ), ); } @@ -2280,3 +2286,10 @@ function uc_order_action_print($orders, $context = array()) { print ''; exit; } + +/** + * Action implementation: delete an order. + */ +function uc_order_action_delete($order) { + uc_order_delete($order->order_id); +}