Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Conditions

29 sites No security coverage
View on drupal.org

The Conditions module provides tools for site builders and developers to create and manage reusable sets of rules. These rules, called conditions, can be added to forms and fields, allowing editors to configure display logic for content, and developers to determine what content is shown to whom based on these rules. This includes features for managing complex rule groupings and efficiently querying entities based on their assigned conditions.

The Conditions module provides reusable form elements, a field type, and services for working with Drupal's condition plugins — the same plugin type used for block visibility (request path, language, user role, and many more provided by core and contrib).

It lets site builders expose condition configuration to content editors directly on any form or field, and lets developers evaluate those conditions at runtime to decide what to show, where, and to whom.

Features

  • conditions form element — renders a configurable list of condition plugins with AND/OR logic
  • conditions_groups form element — renders multiple groups of conditions, each with its own logic and a published/unpublished toggle
  • ConditionsService — initializes condition plugins (including context mapping) and resolves nested condition groups at runtime
  • conditions_field sub-module — a field type that stores conditions as one row per condition (indexed by plugin ID), so entities can be queried efficiently by the conditions assigned to them
  • ConditionsFieldService — bulk lookups of condition data by entity ID or by condition configuration
  • AJAX-enabled widgets for managing condition groups directly on entity edit forms

Requirements

Getting started

The base module provides no admin UI of its own — integrate the conditions/conditions_groups form elements in your own forms, or enable the conditions_field sub-module to add a "Conditions" field to any entity type via the Field UI.

Activity

Total releases
2
First release
Jan 2026
Latest release
6 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

Version Type Release date
1.0.0-rc7 Pre-release Jan 13, 2026
1.0.0-rc6 Pre-release Jan 10, 2026