You are here

function uc_recurring_uc_order in UC Recurring Payments and Subscriptions 7.2

Implements hook_uc_order().

File

./uc_recurring.module, line 301
Allows you to add a recurring fee to a product/SKU to handle subscription type services.

Code

function uc_recurring_uc_order($op, $order, $arg2) {
  switch ($op) {
    case 'delete':
      $fees = uc_recurring_get_fees($order);
      foreach ($fees as $fee) {
        uc_recurring_fee_cancel($fee->rfid, $fee);
        uc_recurring_fee_user_delete($fee->rfid);
      }
      break;
  }
}