You are here

function _postal_code_content_migrate_is_supported_country in Postal Code 7

@file Zipcode content_migrate file

2 calls to _postal_code_content_migrate_is_supported_country()
postal_code_content_migrate_field_alter in ./content_migrate.zipcode.inc
Implement this hook to alter the field definition of the migrated content.
postal_code_content_migrate_instance_alter in ./content_migrate.zipcode.inc
Implements this hook to alter the instance definition of the migrated content.

File

./content_migrate.zipcode.inc, line 9
Zipcode content_migrate file

Code

function _postal_code_content_migrate_is_supported_country($country) {
  $supported_countries =& drupal_static(__FUNCTION__);
  if (!is_array($supported_countries)) {
    $supported_countries = postal_code_validation();
  }
  if ($country == 'uk') {
    $country = 'gb';
  }
  return isset($supported_countries[$country]);
}