Content locking (anti-concurrent editing)

Module Drupal Illustration Voir sur
Nb téléchargements : 13055


  • Code
  • Documentation
  • Miscellaneous
  • User interface


permet de bloquer l'édition concurrente d'un même contenu


Status : Published
Projects : Modules
Maintenance status : Seeking co-maintainer(s)
Development status : Under active development
Supported Branches : 8.x-2.
shield Stable releases for this project are covered by the security advisory policy.



  • Block concurrent editing: When a user is editing a node, any other user that attempts to edit the same node will be blocked from doing so, and notified that the content is already being edited.
  • By node type: This module can be configured to only lock certain content types against concurrent editing.
  • By format: This module can be configured to only lock specific input formats against concurrent editing.
  • Avoid losing content by accident: If a user is editing content and attempts to leave the edit form without first saving it (e.g., closing the browser window/tab, clicking on a link, etc.), they will be notified. If the user confirms that they want to leave without saving the node, the edit lock gets automatically removed by an ajax call. This behaviour can be disabled on the modules settings page.
  • Avoid forgotten locks: Users are notified if they forget to unlock a node. They will be prompted to click on a link to unlock the node.
  • Views integration: All open locks can be listed using Views.


  • Just download and activate the module as normal. Installing modules (Drupal 7)
  • Configure the user permissions:
    1. check out documents - This enables content locking when a user starts editing a node. Note that even without this permission, users are still able to edit contents, they're just not protected against concurrent edits.
    2. administer checked out documents - View and release locked contents of all users. This enables the administrative tab on Content management >> Content. Note that even without this permission, users can manage their own content locks on their profile page.


Safe content editing

The main goal is to be 100% safe. That means that under no circumstances should a user be able to edit a node that another user is already editing. It was a design decision to prefer a somewhat heavy-handed approach rather than risk removing a lock too early. For example, a user can only remove their lock using the save or the cancel buttons, as opposed to simply closing their browser window.


D7 API documentation can be found at: content_lock.api.php.

User Reports

Please post to the issue queue to help make the module better. Feel free to provide patches and suggestions too.

Toutes les informations proviennent du site