function commerce_eu_vat_countries in Commerce European Union VAT 7.2
Returns list of EU countries.
Parameters
$iso2: The ISO2 code of the country to load.
Return value
The specified vat rate object or FALSE if it did not exist.
1 call to commerce_eu_vat_countries()
- commerce_eu_vat_rc_form_commerce_checkout_form_checkout_alter in commerce_eu_vat_rc/
commerce_eu_vat_rc.module
File
- ./
commerce_eu_vat.module, line 81 - Code for the Commerce EU VAT.
Code
function commerce_eu_vat_countries() {
$vat_countries = commerce_vat_countries();
foreach ($vat_countries as $iso2 => $vat_country) {
if (isset($vat_country['eu']) && $vat_country['eu']) {
$eu_countries[$iso2] = $vat_country;
}
}
return count($eu_countries) > 0 ? $eu_countries : FALSE;
}