Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Block Layout Accordion 1.0.2 Minor update available for module block_layout_accordion (1.0.2). Release: Canvas interactive toggle 1.0.2 Minor update available for module canvas_interactive_toggle (1.0.2). Release: Views HTTP Client 1.0.2 Minor update available for module views_http_client (1.0.2). Release: Block Layout Accordion 1.0.1 Minor update available for module block_layout_accordion (1.0.1). Release: Canvas interactive toggle 1.0.1 Minor update available for module canvas_interactive_toggle (1.0.1). Release: Video.js (HTML5 Video Player) 10.0.0-alpha1 First alpha version released for module videojs (10.0.0-alpha1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Release: Audit Trail 1.0.0-alpha7 New alpha version released for module audit_trail (1.0.0-alpha7). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Conditions

30 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.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

1 tracked project depends on this one

Activity

Tracked releases
7
Tracked since
Nov 2024
Latest release
7 months ago
Releases (12 mo)
2 ▼ from 5
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
1.0.0-rc7 Pre-release 10–11 Jan 13, 2026
1.0.0-rc6 Pre-release 10–11 Jan 10, 2026
1.0.0-rc5 Pre-release 10–11 Dec 30, 2024
1.0.0-rc4 Pre-release 10–11 Dec 30, 2024
1.0.0-rc3 Pre-release 10–11 Dec 29, 2024
1.0.0-rc2 Pre-release 10–11 Dec 29, 2024
1.0.0-rc1 Pre-release 10–11 Nov 7, 2024