Drupal is a registered trademark of Dries Buytaert
drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! linkit 7.0.14 Minor update available for module linkit (7.0.14). diff 2.0.0 Major update available for module diff (2.0.0). masquerade 8.x-2.2 Minor update available for module masquerade (8.x-2.2). video_embed_field 3.1.0 Minor update available for module video_embed_field (3.1.0). bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). leaflet 10.4.8 Minor update available for module leaflet (10.4.8). single_content_sync 1.4.15 Minor update available for module single_content_sync (1.4.15). eca 3.1.2 Minor update available for module eca (3.1.2).

Synopsis

This module adds a permission 'delete homepage node'. Users with this permission can delete or unpublish the node that is defined as frontpage in the system settings, if other permissions allow them to. Users without this permission cannot. The main goals is to prevent deletion or depublication, not to grant users the permission to do so. So if other permissions prevent them from deleting a node, granting them this permission will not change that.

In version 3 of the module also the 404 and 403 pages are protected if they are defined in the settings. And there is a custom setting that allows you to add specific other URL's that are protected the same way.

Users who cannot delete this page will not see the delete-button on the nodes, and also this option will not be available on the administer content view. The "Published" checkbox on the edit-form will also be hidden. When the bulk-action for deletion or depublication is used a message will be shown that this operation is not permitted.

Usage

- Install with composer composer require 'drupal/prevent_homepage_deletion:^3.0'
- Enable the module
- Find the new permission to delete the homepage
- Grand it to users with care
(if the user also has the 'bypass node access'-permission, that will overrule the working of this module)
- If you want to protect extra nodes, go to "Configuration" > "System" > "Prevent page deletion" and enter one path per line to protect it

  • Node keep Module provides a checkbox on page level to protect pages

Activity

Total releases
1
First release
May 2026
Latest release
19 hours ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
3.0.2 Stable May 7, 2026