- Issue created by @tonytheferg
- Status changed to Closed: works as designed
about 2 years ago 8:29pm 26 January 2023
Thanks for the module!
When using hook_cloned_node_alter()
, the function fires every time the cloned node page refreshes. (clone/ID/quick_clone
)
This is a problem say if you want to populate a referenced entity with some values, and need to edit the values, it runs the whole hook again on updating the inline entity form, or refreshing the page.
implement the hook, and use xdebug.
Shouldn't the hook only fire when building the cloned node the first time? Is there a was to make it only fire on the first build of the cloned node?
Closed: works as designed
1.0
Code