You are here

function commerce_tax_type_titles in Commerce Core 7

Returns the titles of every tax type keyed by name.

3 calls to commerce_tax_type_titles()
commerce_tax_ui_tax_rate_add_form_wrapper in modules/tax/includes/commerce_tax_ui.admin.inc
Form callback wrapper: ensure tax types exist before going to the add form.
commerce_tax_ui_tax_rate_form in modules/tax/includes/commerce_tax_ui.admin.inc
Form callback: create or edit a tax rate.
commerce_tax_ui_tax_type_title in modules/tax/commerce_tax_ui.module
Title callback: return the title of a tax type.
1 string reference to 'commerce_tax_type_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 114
Defines tax rates and Rules integration for configuring tax rules for applicability and display.

Code

function commerce_tax_type_titles() {
  $titles = array();
  foreach (commerce_tax_types() as $name => $tax_type) {
    $titles[$name] = $tax_type['title'];
  }
  return $titles;
}