The Checkout module implements pessimistic locking, which means that content will be exclusively locked whenever a user starts editing it in order to prevent other users to edit it at the same time.
The lock will be automatically released when the user saves the content or moves away from the edit page.
If permission has been given, it is possible for users to keep a node checked out when they submit their changes; they can therefore be sure that their document is locked between sessions.
The ability to lock content is permission based. Documents that have been "forgotten" to check in can be automatically released through cron.
- Copy the checkout module to your modules directory and enable it on the Modules page (admin/build/modules).
- Give some roles permission to check out documents at the Access control page (admin/user/access). The following permissions can be controlled:
check out documents - Whether a user may check out documents through editing. Even without this permission it will be possible to edit contents, the user is just not protected against concurrent edits.
keep documents checked out - Whether to allow users to manually keep documents checked out using a checkbox on the node edit page.
administer checked out documents - View all checked out documents and forcefully check them back in.
- Configure the module at Content management > Post settings (admin/content/node-settings). The only configurable setting currently is the automatic check-in time period.
- (Optionally) Enable cron to make use of automated check-ins.
· Drupal 5.x/6.x