You are here

function geoip_country_name_by_name in GeoIP API 7

Same name and namespace in other branches
  1. 6 lib/geoip.inc \geoip_country_name_by_name()

File

lib/geoip.inc, line 378

Code

function geoip_country_name_by_name($gi, $name) {
  $country_id = geoip_country_id_by_name($gi, $name);
  if ($country_id !== false) {
    return $gi->GEOIP_COUNTRY_NAMES[$country_id];
  }
  return false;
}