You are here

README.txt in Save Draft 7

Same filename and directory in other branches
  1. 6.2 README.txt
Save_draft adds a 'Save as Draft' Button to the node_form for content types,
allowing the user to click the 'Save as Draft' button to save the node as a
draft.  This helps improve usability, as the content creator no longer has to
search for the published checkbox as they can just click the 'Save as Draft'
Button.

Install
-------

1) Copy the save_draft folder to the modules folder in your installation.

2) For Drupal 6: Enable the module using Administer -> Site building -> Modules
   (/admin/build/modules) and for Drupal 7, go to admin/modules.

3) Now when you create a new node, a 'Save as Draft' button will be
   added to the form.


Developers
----------
If your module adds a button to the node form module and are using the
"Skip required validation" option you can allow your button to also skip
required validation by adding the #skip_required_validation property to your
button. For example, if you are adding a button 'my_button' to the form actions
you would add this property also:
$form['actions']['my_button']['#skip_required_validation'] = TRUE;

Note: Once the module is enabled, all the content types have "save draft" button
enabled and the published checkbox in the node create form will be hidden.

File

README.txt
View source
  1. Save_draft adds a 'Save as Draft' Button to the node_form for content types,
  2. allowing the user to click the 'Save as Draft' button to save the node as a
  3. draft. This helps improve usability, as the content creator no longer has to
  4. search for the published checkbox as they can just click the 'Save as Draft'
  5. Button.
  6. Install
  7. -------
  8. 1) Copy the save_draft folder to the modules folder in your installation.
  9. 2) For Drupal 6: Enable the module using Administer -> Site building -> Modules
  10. (/admin/build/modules) and for Drupal 7, go to admin/modules.
  11. 3) Now when you create a new node, a 'Save as Draft' button will be
  12. added to the form.
  13. Developers
  14. ----------
  15. If your module adds a button to the node form module and are using the
  16. "Skip required validation" option you can allow your button to also skip
  17. required validation by adding the #skip_required_validation property to your
  18. button. For example, if you are adding a button 'my_button' to the form actions
  19. you would add this property also:
  20. $form['actions']['my_button']['#skip_required_validation'] = TRUE;
  21. Note: Once the module is enabled, all the content types have "save draft" button
  22. enabled and the published checkbox in the node create form will be hidden.