This project is not covered by Drupal’s security advisory policy.
Block Expiry allows site builders to control block visibility based on time by adding optional start and end date fields to block configuration.
Once enabled, any block can be configured to:
- Appear only after a specified start date
- Automatically disappear after a specified end date
- Be visible only within a defined time window
If no dates are set, the block behaves normally and remains always visible.
Features
- Adds start and end date controls to all blocks
- Works with custom blocks, Views blocks, and core block plugins
- No cron dependency
- Uses proper access checking (blocks are not rendered when expired)
- Timezone-aware and cache-safe
- Compatible with Drupal 10 and Drupal 11
Typical use cases
- Temporary announcements or banners
- Campaign or event-related blocks
- Maintenance notices
- Time-limited promotions or alerts
Project information
- Project categories: Content display
- Created by ifantrass on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
1.0.0-alpha1
released 28 January 2026
Works with Drupal: ^10 || ^11
Initial alpha release providing time-based visibility control for blocks.