function countries_known_continents in Countries 8
Same name and namespace in other branches
- 7.2 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 484 - Defines the field and entity information for countries.
Code
function countries_known_continents($t_options = array()) {
return countries_get_default_continents($t_options) + array(
'AE' => t('Afro-Eurasia', array(), $t_options),
'1S' => t('Southern Africa', array(), $t_options),
'1W' => t('Western Africa', array(), $t_options),
'1N' => t('Northern Africa', array(), $t_options),
'1M' => t('Middle Africa', array(), $t_options),
'1E' => t('Eastern Africa', array(), $t_options),
'2S' => t('Southern Asia', array(), $t_options),
'2W' => t('Western Asia', array(), $t_options),
'2Z' => t('South-Eastern Asia', array(), $t_options),
'2E' => t('Eastern Asia', array(), $t_options),
'2C' => t('Central Asia', array(), $t_options),
'IC' => t('Indian subcontinent', array(), $t_options),
'2M' => t('Middle East', array(), $t_options),
'2G' => t('Greater Middle East', array(), $t_options),
'3S' => t('Southern Europe', array(), $t_options),
'3W' => t('Western Europe', array(), $t_options),
'3E' => t('Eastern Europe', array(), $t_options),
'3N' => t('Northern Europe', array(), $t_options),
'CE' => t('Continental Europe', array(), $t_options),
'ER' => t('Eurasia', array(), $t_options),
'AM' => t('Americas', array(), $t_options),
'CA' => t('Caribbean', array(), $t_options),
'AC' => t('Central America', array(), $t_options),
'AU' => t('Australasia', array(), $t_options),
'AZ' => t('Australia and New Zealand', array(), $t_options),
'PO' => t('Polynesia', array(), $t_options),
'ME' => t('Melanesia', array(), $t_options),
'MI' => t('Micronesia', array(), $t_options),
);
}