Hi,

Thank you so much for writing this module. I think it's wonderful and I use it all the time. I'm creating a Customfield: PHP code where I create a conditional statement for city and country like so:

  $city    = $data->location_city;
  $country = $data->location_country;
  
  if ($city && $country) {
  return '<div id="myid" class="myclass">' . $city . ', ' . $country . '</div>';
  }

The desired result is if the node contains city and country location data, that data is returned in the view. In fact, the data is returned. However, the country is returned as the country code, not the country name. The country field's Display Style is set to Country Name. This calls for a little more code like so:

  $city    = $data->location_city;    
  $country_code = $data->location_country;
  $countries = location_get_iso3166_list();
  $country_name = $countries[$country_code];  
  
  if ($city && $country_code) {
  return '<div id="myid" class="myclass">' . $city . ', ' . $country_name . '</div>';
  }

Now the country name is returned.

If this is something that can be included, somehow, in the module, great. Mostly I want to share this code for others who may find the same issue.

Thanks again!