Skip to content

Fixes #22: Add clone_node_promote() for promoting a clone back onto its original#23

Open
douggreen wants to merge 2 commits intobackdrop-contrib:1.x-1.xfrom
douggreen:issue_22
Open

Fixes #22: Add clone_node_promote() for promoting a clone back onto its original#23
douggreen wants to merge 2 commits intobackdrop-contrib:1.x-1.xfrom
douggreen:issue_22

Conversation

@douggreen
Copy link
Copy Markdown

Fixes #22

Adds clone_node_promote($clone_nid, $target_nid) which copies a clone's field data back onto its original node, creates a new revision, and deletes the clone.

Mirrors clone_node_save() in reverse — intended for workflows where editors work on a draft clone of a published node, then promote their changes back when ready.

Respects clone_reset_<type>, invokes hook_clone_node_alter() with method='promote', and handles pathauto alias collisions.

@douggreen douggreen changed the title Add clone_node_promote() for promoting a clone back onto its original Fixes #22: Add clone_node_promote() for promoting a clone back onto its original Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add clone_node_promote() for promoting a clone back onto its original

1 participant