function commerce_avatax_commerce_line_item_type_info in Drupal Commerce Connector for AvaTax 7.4
Same name and namespace in other branches
- 7.5 commerce_avatax.module \commerce_avatax_commerce_line_item_type_info()
- 7.3 commerce_avatax.module \commerce_avatax_commerce_line_item_type_info()
Implements hook_commerce_line_item_type_info().
File
- ./
commerce_avatax.module, line 39 - Calculate Sales Tax using AvaTax service from Avalara, Inc.
Code
function commerce_avatax_commerce_line_item_type_info() {
$line_item_types = array();
$line_item_types['avatax'] = array(
'name' => t('Sales tax'),
'description' => t('Calculate AvaTax'),
'add_form_submit_value' => t('Add Sales tax'),
'base' => 'commerce_avatax_line_item',
'callbacks' => array(
'configuration' => 'commerce_avatax_configure_line_item',
),
);
return $line_item_types;
}