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
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | add_form_render-1307818-1.patch | 6.67 KB | MichaelCole |
Comments
Comment #1
MichaelCole commentedComment #2
MichaelCole commentedThe isset causes a problem on the config page. Before selecting a node type, all the fields are available...
Comment #3
eclipsegc commentedThis 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.
Comment #4
eclipsegc commentedOk, added this into node_edit and node_view plugins as seemed appropriate. Calling this done.