Closed (fixed)
Project:
Node clone
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Aug 2011 at 19:38 UTC
Updated:
28 Dec 2011 at 22:03 UTC
I want to pass some 6 variables to node clone so that I can access them from the 'hook_clone_node_alter' function.
My use case is like this: I first present the user with a form to select/enter some parameter values which I will then use in the hook to determine some field values. On form submit I redirect the user to node clone url 'node/XXX/clone'. How can I pass these parameters so i can access them using the $context variable passed to the hook.
Comments
Comment #1
moshe weitzman commentedpass them on the URL as querystrings. prepopulate module might help you here.
Comment #3
tiyberius commentedIf we wanted to call clone_node_save() with additional arguments so that we can use them in hook_clone_node_alter(), how would we do that?