This module provides a field that is capable of auto-saving drafts of an entity (only tested on nodes at this point). This behaves much the way Gmail drafts do.

To enable drafts, simply add a Drafts field to your entity. It provides timed auto-save as well as a "Drafts" tab on the content admin page.

Behind the scenes, it's really straight forward. It basically uses the #ajax feature of the FormAPI to capture the $form_state at any given moment. Then it has the ability to take over the form at any point later. There are most likely some practical and security considerations that I haven't taken into account yet, so any help there would be appreciated.

The initial functionality is quite limited, but more will be appearing soon, including:

  • WYSIWYG consideration
  • JS api to hook into draft events
  • Views integration
  • Misc. bug fixes and features

Keep an eye on this page and please clone the project and help wherever you like :)

Downloads

Project Information


Maintainers for Drafts

Issues for Drafts

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports