You are here

function uc_recurring_product_fee_product_delete in UC Recurring Payments and Subscriptions 7.2

Same name and namespace in other branches
  1. 6.2 modules/uc_recurring_product/uc_recurring_product.module \uc_recurring_product_fee_product_delete()

Deletes a recurring product.

Parameters

$pfid: The ID of the recurring fee to be removed from the appropriate table.

1 string reference to 'uc_recurring_product_fee_product_delete'
uc_recurring_product_uc_product_feature in modules/uc_recurring_product/uc_recurring_product.module
Implements hook_uc_product_feature().

File

modules/uc_recurring_product/uc_recurring_product.module, line 699
Add recurring payments/fees to a product. This is imlpemented through Ubercarts product features.

Code

function uc_recurring_product_fee_product_delete($pfid) {
  module_invoke_all('recurring_product_delete', $pfid);
  db_delete('uc_recurring_product')
    ->condition('pfid', $pfid)
    ->execute();
}