Install
Works with Drupal: 7.xUsing dev releases is not recommended, except for testing.
Using Composer to manage Drupal site dependencies
Downloads
Release notes
Changes since 7.x-2.1
#2284469: Tests for "New countries" (not in core) fail
#2041235: Problems with Views filter "(country from field_country) Countries: Name - list (exposed)"
#2036249: Devel Generate module integration.
#2034027: Cache clearing function: countries_clear_caches()
#2034005: Misc issues. Wrong CRUD usage, couple test errors and clean-up
#2033081: Deleting a custom country redirects to the wrong page
#1225632: Integrate with VBO (allowing custom views and bulk update options)
#1130506: Apache Solr integration
#2017825: Multiple duplicates in imports may cause PHP warnings and incomplete messages
#1981556: CTools context support for ISO alpha-2 and alpha-3 arguments
#1619486: Breadcrumb for Views contextual filter displays ISO2 code instead of country name
#1860966: Installing module uses iso.inc country name instead of CSV 'name'
#1941142: Error when modules "List" and "Options" are not enabled
#2027291: Best practice: How to add a country without an ISO code?
#1889998: Use label callback instead of name property
#1490864: Multilingual Support in field_formatter
#1907918: Country field isn't required
#2017805: Make the view relationship more obvious to users
#1458938: Add schema columns properties
#2027613: Overhead in countries_countries_alter()
#2117755: Typo on README.txt
Contains some updates to the official country names and ISO update:
#1793392: Some of the country names are wrong
#1157504: New countries
New in this version (7.x-1.x to 7.x-2.x):
- Views Support
- Refactored code to utilize the options list widget from Drupal core.
- Integration with the Entity API
- And much more
The current road map to an official 7.x-2.x is outlined here: #1437376: Pre 7.x--2.0 release tasks [meta issue].
New Entity API dependency
Minor API changes
These should not effect end-users.
The function countries_get_countries() could throw an exception if an invalid property is requested.
Deprecated countries_get_country(). Each time that this function is called, the module will log a warning in the error logs. Use country_load() instead.