You are here

function countries_known_continents in Countries 7.2

Same name and namespace in other branches
  1. 8 countries.module \countries_known_continents()

Provides a bigger set of continents for i18n.

If you enable a different set of continents from the default using the system variable 'countries_continents', following the codes below to allow the module to correctly set the continent names in multi-locale systems.

As per the default continent fields, these codes do not correlate to any known existing continental code standard.

Please submit an issue if you want other continents added to this list.

1 call to countries_known_continents()
countries_get_continents in ./countries.module
Gets a list of all continents currently enabled.

File

./countries.module, line 474
Defines the field and entity information for countries.

Code

function countries_known_continents() {
  return countries_get_default_continents() + array(
    'AE' => t('Afro-Eurasia'),
    '1S' => t('Southern Africa'),
    '1W' => t('Western Africa'),
    '1N' => t('Northern Africa'),
    '1M' => t('Middle Africa'),
    '1E' => t('Eastern Africa'),
    '2S' => t('Southern Asia'),
    '2W' => t('Western Asia'),
    '2Z' => t('South-Eastern Asia'),
    '2E' => t('Eastern Asia'),
    '2C' => t('Central Asia'),
    'IC' => t('Indian subcontinent'),
    '2M' => t('Middle East'),
    '2G' => t('Greater Middle East'),
    '3S' => t('Southern Europe'),
    '3W' => t('Western Europe'),
    '3E' => t('Eastern Europe'),
    '3N' => t('Northern Europe'),
    'CE' => t('Continental Europe'),
    'ER' => t('Eurasia'),
    'AM' => t('Americas'),
    'CA' => t('Caribbean'),
    'AC' => t('Central America'),
    'AU' => t('Australasia'),
    'AZ' => t('Australia and New Zealand'),
    'PO' => t('Polynesia'),
    'ME' => t('Melanesia'),
    'MI' => t('Micronesia'),
  );
}