You are here

protected function countries_import_manager::isUserDefinedISO2 in Countries 8

1 call to countries_import_manager::isUserDefinedISO2()
countries_import_cldr::import in modules/countries_import/plugins/countries_import_cldr.inc

File

modules/countries_import/plugins/countries_import_manager.inc, line 41
Definition of countries_import_manager.

Class

countries_import_manager
Defines a base class for country import managers.

Code

protected function isUserDefinedISO2($code) {
  $code = drupal_strtoupper($code);
  if ($this
    ->isValidISO2($code)) {
    return preg_match('/^(AA)|(Q[M-Z]+)|(X[A-Z]+)|(ZZ)$/', $code);
  }
  return FALSE;
}