This module adds a standardized country selection field to your Drupal site, using the official country list provided by Drupal core. It offers multiple widget options, integrates with Views and Facets for searching and filtering, and can be used in custom forms.
Add standardized country selection to your Drupal site with ease. The Country module provides a dedicated field type for Drupal core's official country list — no configuration of country options needed.
Features
- Core country list – Uses the official country list provided by Drupal core, always up-to-date
- Multiple widget options – Select list, checkboxes, radio buttons, or autocomplete
- Views integration – Sort and filter plugins for building country-aware listings
- Facets support – Enable country-based faceted search out of the box
- Feeds integration – Import country data from external sources
- Form API element – Use
#type => 'country'in custom forms - Token support – Dynamic country values in your content
- Standards-based – Uses ISO 3166-1 alpha-2 country codes
Why Use Country?
A proper semantic field type with built-in country data that stays in sync with Drupal core. Integrates with Views, Facets, Tokens, Feeds, and Form API out of the box.
Integration
- Flags – Add country flag icons to your Country field selection lists
- Tagify - Provides a more user friendly select list
Documentation
Full documentation is available in the README file.
🤖 Assisted Development
This module is maintained with the help of AI assistants for code generation, review, testing, and documentation. All code is carefully reviewed by the maintainers to ensure that quality and security standards are met.
Depends on
Dependencies of the latest stable release
- field Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Country ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | Release date | |
|---|---|---|---|---|
| 2.2.1 | Stable | 11 | Oct 7, 2026 | |
| 2.1.3 | Stable | 10–11 | Oct 7, 2026 | |
| 2.2.0 | Stable | 11 | Aug 28, 2026 | |
| 2.1.2 | Stable | 10–11 | Mar 27, 2026 | |
| 2.1.1 | Stable | 10–11 | Nov 29, 2024 | |
| 2.1.0 | Stable | 10–11 | Oct 25, 2024 | |
| 2.0.1 | Stable | 10 | Apr 26, 2024 | |
| 2.0.0 | Stable | 8–10 | Apr 26, 2024 | |
| 8.x-1.1 | Stable | Jan 23, 2023 |