block_expiry
No security coverage
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