Drupal is a registered trademark of Dries Buytaert
cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! linkit 7.0.15 Minor update available for module linkit (7.0.15). views_data_export 8.x-1.10 Minor update available for module views_data_export (8.x-1.10).

flags

Security covered
View on drupal.org

Display country and language flag icons alongside your fields in Drupal. The Flags module provides flag icons for both countries and languages using a CSS-sprite for fast loading, with field formatters and a simple API.

Features

  • Country and language flags – Flag icons compatible with Country and Language field formatters
  • CSS-sprite based – All flags loaded from a single sprite for fast performance
  • Field formatters – Display flags in "Manage display" for any supported field type
  • Form display – Show flags in select lists via Select Icons or Select2 Boxes
  • Language switcher icons – Display flags in language switcher blocks and node forms
  • Customizable mappings – Override which flag is used for any country or language via the UI submodule (Administration > Configuration > Regional and language > Flags)
  • Simple API – Retrieve flag icons programmatically for custom use cases

Submodules

  • Flags Country – Integrates with the Country module field type
  • Flags Language – Integrates with core's language field
  • Flags Languagefield – Integrates with the Language Field module
  • Flags UI – Administration interface to customize flag-to-country/language mappings

Usage

Enable one of the submodules that provides integration with your field type. After enabling, new field formatters for flag icons become available under "Manage display" (and under "Manage form display" when using Select Icons).

Related modules

  • Country – Provides a country field type using Drupal core's country list
  • Select Icons – Display flag icons in form select lists
  • Select2 Boxes – Alternative select list widget with flag support
  • Language Display – Required for flag icons on core's language field formatter

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.

Activity

Total releases
1
First release
May 2026
Latest release
22 hours ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
2.0.0 Stable May 23, 2026