This patch allows hook_clone_node_alter to return a form ID string, which will be used to load the node into.

If a form ID is not returned the $node->type . '_node_form' form is used.

This is useful if you have custom node forms on your site.

CommentFileSizeAuthor
node_clone_custom_node_form.patch793 bytesagileware

Comments

pwolanin’s picture

Status: Needs review » Needs work

_alter hooks should not have a return value.

This seems a bit edge case too.

deekayen’s picture

Version: 5.x-2.x-dev » 7.x-1.x-dev

Changing to a more likely version, if it's ever going to be committed.

pwolanin’s picture

Issue summary: View changes
Status: Needs work » Closed (won't fix)