function commerce_tax_ui_tax_rate_new in Commerce Core 7
Returns an initialized tax rate array.
Parameters
$type: The name of the tax type for the new rate.
2 calls to commerce_tax_ui_tax_rate_new()
- CommerceBaseTestCase::createDummyTaxRate in tests/
commerce_base.test - * Create a dummy tax rate. * *
- commerce_tax_ui_menu in modules/
tax/ commerce_tax_ui.module - Implements hook_menu().
File
- modules/
tax/ commerce_tax_ui.module, line 366 - Provides a UI for creating simple tax types and rates.
Code
function commerce_tax_ui_tax_rate_new($type = '') {
return array(
'name' => '',
'title' => '',
'display_title' => '',
'description' => '',
'rate' => 0,
'type' => $type,
'default_rules_component' => TRUE,
'tax_component' => '',
'admin_list' => TRUE,
'calculation_callback' => 'commerce_tax_rate_calculate',
'module' => 'commerce_tax_ui',
'is_new' => TRUE,
);
}