You are here

function commerce_tax_rate_titles in Commerce Core 7

Returns the titles of every tax rate keyed by name.

1 call to commerce_tax_rate_titles()
commerce_tax_ui_tax_rate_title in modules/tax/commerce_tax_ui.module
Title callback: return the title of a tax rate.
1 string reference to 'commerce_tax_rate_titles'
commerce_tax_rules_action_info in modules/tax/commerce_tax.rules.inc
Implements hook_rules_action_info().

File

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

Code

function commerce_tax_rate_titles() {
  $titles = array();
  foreach (commerce_tax_rates() as $name => $tax_rate) {
    $titles[$name] = $tax_rate['title'];
  }
  return $titles;
}