You are here

function uc_taxes_rate_delete in Ubercart 6.2

Same name and namespace in other branches
  1. 7.3 uc_taxes/uc_taxes.module \uc_taxes_rate_delete()

Deletes a tax rate from the database.

Parameters

$rate_id: The ID of the tax rate to delete.

1 call to uc_taxes_rate_delete()
uc_taxes_delete_form_submit in uc_taxes/uc_taxes.admin.inc
Form submission handler for uc_taxes_delete_form().

File

uc_taxes/uc_taxes.module, line 359

Code

function uc_taxes_rate_delete($rate_id) {

  // Delete the tax rate record.
  db_query("DELETE FROM {uc_taxes} WHERE id = %d", $rate_id);

  // Delete the associated predicated if it has been saved to the database.
  ca_delete_predicate('uc_taxes_' . $rate_id);
}