Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The API contains a method to retrieve a region name given the country code and region code, but there's currently no method with which to retrieve the regions for a given country. It would be useful if we could retrieve, say, all regions in GB.
Comment | File | Size | Author |
---|---|---|---|
#1 | geoip.query_regions_for_country.patch | 830 bytes | rmathew |
Comments
Comment #1
rmathew CreditAttribution: rmathew commentedPatch adds a geoip_region_values($country_code) method to return all regions for a given country code.
Comment #2
bojanz CreditAttribution: bojanz at Centarro commented