To make life easier, 6.x should offer both methods, and break most code out into 1 or 2 .inc files.

Comments

pwolanin’s picture

Title: include both methods, refactos files » include both methods, refactor files
Assigned: Unassigned » pwolanin
Status: Active » Needs review
StatusFileSize
new10.81 KB

untested patch

pwolanin’s picture

StatusFileSize
new11.4 KB

modestly tested patch

quicksketch’s picture

Tested out with Webform (both methods). If it can work with Webform, it should work with anything :D

Works great in both cases. Having an option is definitely a big improvement. My only suggestion is to clarify the two radio button options. It's not clear to me what "the form" is, or what I'm saving before editing.

Pre-populate the form
Save then edit 

I'd suggest:

Pre-populate a new node form
Save the new node then edit

But this is minor. The code itself works great and does good cleanup.

pwolanin’s picture

Status: Needs review » Fixed
StatusFileSize
new11.46 KB

thanks for the review - committed the attached to HEAD - making a release.

pwolanin’s picture

StatusFileSize
new3.54 KB

and clean up the README too.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

  • Commit cd00da0 on 6.x-1.x, 7.x-1.x, master, 8.x-1.x by pwolanin:
    #254328 get both methods in one module, add uninstall code
    
    
  • Commit 64f92a9 on 6.x-1.x, 7.x-1.x, master, 8.x-1.x by pwolanin:
    #254328 update README