function hook_commerce_vat_country_info in Commerce VAT 7
Defines country VAT handling information.
Return value
An array of information about countries. The returned array should be an associative array of vat rate arrays keyed by the countries iso2 code. Each country array can include the following keys:
- title: the title of the country defaults to that provided by Drupal.
- iso2: The iso2 country code.
- rules_component_profile: Rules condition component machine name to determine if the commerce customer profile is located in this given country.
- rules_component_place: Rules condition component machine name to determine the Place if Supply.
- rules_component: The rules component machine name to calculate the VAT for this country.
- default_profile_rules_component, default_place_rules_component and default_rules_component: boolean indicating whether or not the vat module should define a default default Rules component using the specified name; defaults to TRUE.
- default_field: If TRUE, a VAT field instance for this country is added to every product type on cache clear and product type insert.
- module: The module implementing this country info.
- eu: boolean indicating if this country is in the EU.
For default values @see commerce_vat_countries().
1 invocation of hook_commerce_vat_country_info()
- commerce_vat_countries in ./
commerce_vat.module - Returns an array of vat country objects keyed by name.
File
- ./
commerce_vat.api.php, line 36 - Documents hooks provided by the vat module.
Code
function hook_commerce_vat_country_info() {
$vat_countries = array(
'AU' => array(
'default_field' => FALSE,
),
);
return $vat_countries;
}