You are here

function geocoder_widget_parse_countryfield in Geocoder 7

Geocoder Widget - Parse a country field.

5 calls to geocoder_widget_parse_countryfield()
geocoder_bing_field in plugins/geocoder_handler/bing.inc
Plugin callback.
geocoder_google_field in plugins/geocoder_handler/google.inc
Plugin callback.
geocoder_mapquest_nominatim_field in plugins/geocoder_handler/mapquest_nominatim.inc
Plugin callback.
geocoder_yahoo_field in plugins/geocoder_handler/yahoo.inc
Plugin callback.
geocoder_yandex_field in plugins/geocoder_handler/yandex.inc
Plugin callback.

File

./geocoder.widget.inc, line 698
geocoder.widget.inc

Code

function geocoder_widget_parse_countryfield($field_item) {
  $address = '';
  $country = country_load($field_item['iso2']);
  if ($country) {
    $address = $country->name;
  }
  return $address;
}