Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Statistics Counter Module statistics_counter crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

Flags

616 sites Security covered
View on drupal.org

This module displays country and language flag icons alongside your fields. It offers field formatters for easy integration and a simple API for custom use.

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.

Documentation.

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

🤖 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

Tracked releases
1
Tracked since
May 2026
Latest release
3 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
2.0.0 Stable May 23, 2026