Hi, here's a patch to noderef_create_node.inc that:

1) Adds a config option to choose node/%/edit vs Drupal's default form
2) Renders the add form appropriately.
3) Should be backwards compatible with previous configs (defaults to Drupal's template)

I added an isset() to get rid of some warnings. It would be worth double-checking this.

Thanks for the help making this Kris!

Mike

CommentFileSizeAuthor
#1 add_form_render-1307818-1.patch6.67 KBMichaelCole

Comments

MichaelCole’s picture

StatusFileSize
new6.67 KB
MichaelCole’s picture

The isset causes a problem on the config page. Before selecting a node type, all the fields are available...

eclipsegc’s picture

Assigned: Unassigned » eclipsegc
Status: Active » Needs work

This has been reviewed and committed in a slightly different form. Numerous changes were made before I got to this patch but that just means we have a central callback for doing this now which both node_create_menu and noderef_create_node plugins now use.

Marking this as needs work since optimally the node_edit plugin would also have this ability.

This functionality shouldn't hurt existing deploys and was just too cool to not put into a 1.0. I hope to get the node_edit plugin transitioned today.

eclipsegc’s picture

Status: Needs work » Fixed

Ok, added this into node_edit and node_view plugins as seemed appropriate. Calling this done.

Status: Fixed » Closed (fixed)

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