Period Lock locks content dated in closed accounting periods. Once a month is closed, nobody can create, edit or delete records dated in it, so the figures that were reported stay the figures in the system.
It was built for financial and administrative sites where Drupal entities record transactions, invoices or payments, and an accounting close must be respected.
Features
- Choose, per content type, the Date or Date range fields that decide which period a record belongs to. With several fields, the earliest date counts.
- One closing date: everything dated on or before it is locked.
- Two layers: entity access hides Edit and Delete and returns 403, and an entity validation constraint refuses new or moved records in closed periods wherever entities are validated (forms, REST, JSON:API).
- Optional "new records only" mode while a period is under review.
- Separate permissions to move the closing date forward, to reopen closed periods and to bypass the lock.
Requirements
Drupal 10.3 or later, or Drupal 11, and the core Datetime module. No contributed modules or libraries.
Similar modules
- Content Lock prevents two people from editing the same content at the same time.
- Content Freeze freezes editing for the whole site.
Period Lock is different: it locks records by their own dates, like an accounting close.
Ask your assistant about Period Lock
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- datetime Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0 | Stable | 10–11 | PHP 8.1 | Nov 26, 2026 |