Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Easy Breadcrumb 2.0.11 — Minor update available for module easy_breadcrumb (2.0.11). Release: Bootstrap 8.x-3.42 — Minor update available for theme bootstrap (8.x-3.42). Release: Editoria11y Accessibility Checker 3.0.10 — Minor update available for module editoria11y (3.0.10). Release: Editoria11y Accessibility Checker 2.2.24 — Minor update available for module editoria11y (2.2.24). Release: Leaflet 10.4.13 — Minor update available for module leaflet (10.4.13). Release: Flag 5.1.1 — Minor update available for module flag (5.1.1). Release: MCP Sentinel 2.33.0 — Minor update available for module mcp_sentinel (2.33.0). Module Revived: Bootstrap 8.x-3.41 — Theme bootstrap updated after 6 months of inactivity (8.x-3.41). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

Flags

650 sites Security covered Drupal 11 · not 10
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.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Apr 2023
Latest release
1 month ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
2.1.0 Stable 11 Aug 28, 2026
2.0.0 Stable 9–11 May 23, 2026
2.0.0-alpha1 Pre-release 9–11 Jun 2, 2024
8.x-1.0-beta4 Pre-release Apr 15, 2023