function uc_recurring_hosted_subscription_delete in UC Recurring Payments and Subscriptions 6.2
Same name and namespace in other branches
- 7.2 modules/uc_recurring_hosted/uc_recurring_hosted.module \uc_recurring_hosted_subscription_delete()
Delete a record by subscription ID or recurring fee ID.
Parameters
$id: The ID.
$type: The type of the get request. can be "rfid" for recuring fee ID, or "subscription" for the subscription ID.
1 call to uc_recurring_hosted_subscription_delete()
- uc_recurring_hosted_subscription_save in modules/
uc_recurring_hosted/ uc_recurring_hosted.module - Save a new subscription ID
File
- modules/
uc_recurring_hosted/ uc_recurring_hosted.module, line 187 - Provides hosted gateway specific code for recurring payments, specifically Authorize.net ARB and Paypal WPS
Code
function uc_recurring_hosted_subscription_delete($id, $type = 'rfid') {
module_invoke_all('uc_recurring_hosted_subscription_delete', $id, $type);
if ($type == 'rfid') {
$return = db_query("DELETE FROM {uc_recurring_hosted} WHERE rfid = %d", $id);
}
else {
$return = db_query("DELETE FROM {uc_recurring_hosted} WHERE subscription_id = '%s'", $id);
}
}