CVS edit link for danjukes

I have been a Drupal developer for over 2 years working on numerous projects and attended Drupalcon in Washington last year. I currently work at Mark Boulton Design.

I have recently created a simple module for Drupal 7 that adds a 'Save as Draft' Button to the node_form for content types, allowing the user to click the button to save it as draft instead of having to uncheck the published check box for a node. This module I wish to submit to the Drupal Community.

I also create various themes which I wish to submit in the future.

Many thanks,

Dan Jukes

CommentFileSizeAuthor
#11 save_draft.zip3.8 KBAnonymous (not verified)
#9 save_draft.zip3.8 KBAnonymous (not verified)
#7 save_draft.zip2.7 KBAnonymous (not verified)
#5 sad.jpg72.4 KBAnonymous (not verified)
#1 save_draft.zip3.1 KBAnonymous (not verified)

Comments

Anonymous’s picture

StatusFileSize
new3.1 KB
Anonymous’s picture

Status: Postponed (maintainer needs more info) » Needs review
avpaderno’s picture

Status: Needs review » Needs work

Hello, and thanks for applying for a CVS account. I am adding the review tags, and some volunteers will review your code, pointing out what needs to be changed.

As per http://drupal.org/cvs-application/requirements, the motivation message should be expanded to contain more details about the features of the proposed module, and it should include also a comparison with the existing solutions.

avpaderno’s picture

Issue tags: +Module review
Anonymous’s picture

Status: Needs work » Needs review
StatusFileSize
new72.4 KB

Hi Kiamlaluno,

Thanks for taking the time to consider my module.

The motivation for creating this module is I am currently developing a project using Drupal 7 and needed to add this feature to the site and was unable to find a similar module currently available to add this feature.

There has been much criticism that the publishing options tab is hidden in a collapsed fieldset on creating / editing a node.

One of the usability issues highlighted in D7UX project was the adding of a 'Save Draft' Button. However this did not meet the D7 code freeze and has now been scheduled for D8. This module adds this feature to D7.

This module I have created adds this functionality and even though only a simple change to the node created / edit form, it improves usability, as the content creator no longer has to search for the published checkbox they can just click the 'Save as Draft' Button. Please see the attached screen shot attached.

Thanks once again.

Dan Jukes

zzolo’s picture

Status: Needs review » Needs work

Some, but probably not all, things to improve. Please note that some of the things listed are just examples and there may be multiple occurrences to fix.

  1. ; $Id: save_draft.info,v 1.0 2010/03/10 16:21:00 danjukes Exp $
    

    Should be just "$Id$" as the CVS d.o packaging will handle this.

  2. Follow Drupal coding standards and use Coder: http://drupal.org/coding-standards http://drupal.org/project/coder
  3. Use docblocks for all functions.
  4. It seems like you are rewriting the node submit and saving functions here. You should just be leveraging the usual submit function after setting the published property. I don't have the API in front of me right now, but you should be able to leverage a function to handle of most of this.

Overall, fairly-well written, helpful, little module. Keep up the good work.

Anonymous’s picture

Status: Needs work » Needs review
StatusFileSize
new2.7 KB

Hi zzolo,

Many thanks for your feedback on my module. I have worked through your recommendations and please find attached my updated module.

Many thanks,

danjukes

zzolo’s picture

Status: Needs review » Needs work

Things to do for CVS access:

  1. Have a basic README.txt
  2. /**
     * Implementation of hook form alter to add the save as draft button
     */
    

    Should be the following. (With hook docblocks, you just want to reference the hook.)

    /**
     * Implements hook_form_alter().
     */
    

Suggestions

  1. Port to Drupal 6. I would use this in a number of my sites. :)

Good work. Should be ready next time around.

Anonymous’s picture

StatusFileSize
new3.8 KB

Hi zzolo,

Thanks for your suggestions. I have now added a readme.txt to the module and changed the docblocks hook reference. I have now ported the module to Drupal 6.

Please find attached the updated module.

Thanks once again,

danjukes

Anonymous’s picture

Status: Needs work » Needs review
Anonymous’s picture

StatusFileSize
new3.8 KB

Hi zzolo,

Sorry ignore my previous update as the upload contained an error. I have now fixed this in the updated version of my module in Drupal 6 which is attached.

Thanks,

danjukes

zzolo’s picture

Status: Needs review » Reviewed & tested by the community

Looks good. Great work! Can't wait to use this one.

avpaderno’s picture

Status: Reviewed & tested by the community » Fixed

Thank you for your contribution!
I am going to update your account so you can opt into security advisory coverage now.
These are some recommended readings to help with excellent maintainership:

You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

I thank all the dedicated reviewers as well.

Status: Fixed » Closed (fixed)
Issue tags: -Module review

Automatically closed -- issue fixed for 2 weeks with no activity.

avpaderno’s picture

Component: Miscellaneous » new project application
Assigned: Unassigned » avpaderno
Issue summary: View changes