function uc_recurring_order in UC Recurring Payments and Subscriptions 6.2
Same name and namespace in other branches
- 6 uc_recurring.module \uc_recurring_order()
Implementation of hook_order().
1 string reference to 'uc_recurring_order'
- uc_recurring_order_init in modules/
uc_recurring_order/ uc_recurring_order.module - Implementation of hook_init().
File
- ./
uc_recurring.module, line 349 - Allows you to add a recurring fee to a product/SKU to handle subscription type services.
Code
function uc_recurring_order($op, $arg1, $arg2) {
switch ($op) {
case 'delete':
$fees = uc_recurring_get_fees($arg1);
foreach ($fees as $fee) {
uc_recurring_fee_cancel($fee->rfid, $fee);
uc_recurring_fee_user_delete($fee->rfid);
}
break;
}
}