Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Exclusive boolean

12 sites Security covered Drupal 10–11
View on drupal.org

This module ensures that only one node of a specific content type can have a particular boolean field enabled at any time. When saved, it automatically unchecks that field on all other nodes of the same type, making the most recently saved node the only one with the field set to true. This is useful for scenarios like having a single featured item or an active announcement.

Exclusive Boolean ensures that only one node per content type can have a specific boolean field enabled at any given time.

In many Drupal projects, editors need to mark a single piece of content as featured, highlighted, primary, or active. By default, Drupal allows multiple nodes to have the same boolean field checked, which often requires custom code or manual cleanup.

This module solves that problem automatically.


What it does

When Exclusive Boolean is enabled on a boolean field:
Editors can check the field on a node as usual

Upon saving, the module automatically unchecks the same field on all other nodes of the same content type

The most recently saved node becomes the only one with the field set to TRUE

No additional actions are required from editors.

How It Works
Adds an “Exclusive” option to boolean fields on node content types
Enforcement happens automatically during node save
Once enabled, no further configuration is required
The logic is scoped to the content type and field where it is activated

Typical use cases
Homepage featured content
One active announcement or alert
A single “current” event
One primary configuration or reference node

Key features
Works with core boolean fields
Enforced per content type
Automatic and reliable on node save
No manual cleanup required
Lightweight with minimal performance impact
No external dependencies

Depends on

Dependencies of the latest stable release

  • field Drupal core
  • node Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Feb 2026
Latest release
6 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
1.0.2 Stable 10–11 Feb 11, 2026
1.0.1 Stable 10–11 Feb 11, 2026
1.0.x-dev Dev 10–11 Feb 11, 2026