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 assigns a workflow state, such as draft or published, to existing content when a content type is configured with content moderation. This ensures that older content appears correctly in views filtered by workflow state.

Give all existing content in content types newly configured to use a content moderation workflow a draft or published state (based on their unpublished or published status).

Features

This is really only needed for listing pages, where you can filter content by moderation state and will now expect to / be expected to instead of filtering by published / unpublished; the bigger problem is that once a view is filtering by workflow state any content that does not have a workflow state no longer appears in the listing. For this reason it is important to retroactively add a state from Drupal core's Workflows module for each piece of content when the content type is configured to have a

Post-Installation

Visit config page to run batch process or run drush command.

Additional Requirements

  • Content moderation tabs works great with content moderation workflows, especially when this module has put all existing content into one of the states that can show up in a tab (tabs like "Draft", "In review", "Published").

Similar projects

You should be able to do something similar, but manually, with Moderated Content Bulk Publish for getting old non-workflow content into workflows, but it is not automatic (need to filter by published and apply a bulk change, one page of a view at a time, and then filter by unpublished— and here it was not clear how to set things to the Draft state.

Of course really all you need to do is filter content by moderated content is EMPTY and then "Save" all that content, so Views Bulk Operations on its own should do it.

Supporting this Module

You can support Agaric's overall contributions to Drupal and a bit beyond by supporting Drutopia at opencollective.com/drutopia. Thanks!!

Activity

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

Releases

Version Type Release date
1.0.x-dev Dev Aug 26, 2025