You are here

function commerce_tax_rate_load in Commerce Core 7

Returns a single tax rate object.

Parameters

$name: The name of the tax rate to return.

Return value

The specified tax rate object or FALSE if it did not exist.

10 calls to commerce_tax_rate_load()
CommerceBaseTestCase::createDummyTaxRate in tests/commerce_base.test
* Create a dummy tax rate. * *
CommerceTaxUIAdminTest::testCommerceTaxUICreateTaxRate in modules/tax/tests/commerce_tax_ui.test
Test the creation of a tax rate.
CommerceTaxUIAdminTest::testCommerceTaxUIDeleteTaxRate in modules/tax/tests/commerce_tax_ui.test
Test deleting a tax rate.
CommerceTaxUIAdminTest::testCommerceTaxUIDeleteTaxType in modules/tax/tests/commerce_tax_ui.test
Test deleting a tax type.
CommerceTaxUIAdminTest::testCommerceTaxUIEditTaxRate in modules/tax/tests/commerce_tax_ui.test
Test editing a tax rate.

... See full list

1 string reference to 'commerce_tax_rate_load'
commerce_tax_ui_tax_rate_form in modules/tax/includes/commerce_tax_ui.admin.inc
Form callback: create or edit a tax rate.

File

modules/tax/commerce_tax.module, line 200
Defines tax rates and Rules integration for configuring tax rules for applicability and display.

Code

function commerce_tax_rate_load($name) {
  $tax_rates = commerce_tax_rates();
  return empty($tax_rates[$name]) ? FALSE : $tax_rates[$name];
}