Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module automatically unpublishes content after a specified expiration date. It can optionally notify the content author when the content is unpublished.

Features

This module would provide site administrators with a simple way to set an expiration date on content nodes. When the expiration date is reached, the module would automatically unpublish the content and optionally notify the content author.

This module addresses a common problem for sites with high content volume (e.g., news sites, blogs, or event listings) by automating content cleanup and preventing outdated information from lingering on the site.

Post-Installation

### 1. Add an Expiration Date Field

First, you need to add a dedicated field to your content types to store the expiration date.

* Navigate to **Structure** → **Content types**.
* Click **Manage fields** next to the desired content type (e.g., "Article" or "Page").
* Click **+ Add field**.
* Select **Date** or **Date and time** as the field type.
* Give it a machine name, such as **`field_expiration`**. Then, click **Save and continue**.
* On the next screen, you can configure the field's settings. Click **Save field settings** to proceed.

---

### 2. Expose the Field on the Content Form

Next, make sure the field is visible for content editors to use.

* While on the content type's page, click the **Manage form display** tab.
* Locate the field you just created (**`field_expiration`**) in the list.
* Ensure its widget is set to an appropriate date picker (e.g., "Date and time").
* Drag the field to your preferred position on the form.
* Click **Save**.

---

### 3. Configure the Content Archiver Module

Finally, tell your **Content Archiver** module which field to use for the expiration date.

* Go to **Administration** → **Configuration** → **Content** → **Content Archiver**.
* In the settings form, find the option for "Expiration field machine name."
* Enter the machine name of the date field you created (e.g., **`field_expiration`**).
* Click **Save configuration**.

Activity

Total releases
1
First release
Sep 2025
Latest release
10 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Release date
1.0.0 Stable Sep 4, 2025