You are here

function geoip_continents_list in GeoIP API 7.2

Returns the list with the ISO continents keyed by the continent code.

Return value

array Associative array key is the continent code, value is the continent name.

Related topics

3 calls to geoip_continents_list()
GeoIpHandlerV1::continentName in src/GeoIpHandlerV1.php
Returns the continent name for a given IP.
geoip_ctools_plugin_region_ctools_access_settings in plugins/access/continent.inc
Settings form for the 'user_agent' access plugin.
geoip_ctools_plugin_region_ctools_access_summary in plugins/access/continent.inc
Provide a summary description based upon provided user agent.
1 string reference to 'geoip_continents_list'
geoip_rules_condition_info in ./geoip.rules.inc
Implements hook_rules_action_info().

File

./geoip.module, line 350
API for using the MaxMind GeoLite Country database.

Code

function geoip_continents_list() {
  $continents = array(
    'AN' => t('Antarctica'),
    'AF' => t('Africa'),
    'AS' => t('Asia'),
    'EU' => t('Europe'),
    'NA' => t('North America'),
    'OC' => t('Australia (Oceania)'),
    'SA' => t('South America'),
  );
  return $continents;
}