Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This project is not covered by Drupal’s security advisory policy.
Conditions are sets of requirements (e.g. PHP code, current page or site) that make the condition as a whole TRUE
or FALSE
. Other modules can provide new requirements or use the Condition API to trigger some kind of action (e.g. display a block or switch the theme to Garland) in case a condition is TRUE
.
Included requirements
- PHP code
TRUE
if the evaluated code returnsTRUE
- Pages
TRUE
if the any/all/none of the entered path(s) is/are (like) the current path. - Sites
TRUE
if the any/none of the checked multi-site directory(ies) is the current directory. - Domains
TRUE
if the any/none of the entered (sub)domain(s) is/are (like) the current domain.
Modules using Condition(s)
Proposals for further usage
- Add conditions as an extra option for the the blocks hide/show filter.
Project information
- Module categories: Administration Tools, Developer Tools
- 13 sites report using this module
- Created by fokkezb on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.