Closed (fixed)
Project:
Lost & found issues
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
23 Aug 2016 at 19:01 UTC
Updated:
7 Sep 2016 at 14:34 UTC
Jump to comment: Most recent, Most recent file
Have the code check if the panelizer_add_node_nid property is an array of nodes or not. That way we can attach a node to several pages at once.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2788915-multiple.patch | 4.11 KB | minoroffense |
Comments
Comment #2
minoroffense commentedPatch attached.
Comment #3
minoroffense commentedAll I did was wrap the function in a foreach and check if the passed param is an array or not. If not, convert to array and let it run.
Comment #4
minoroffense commentedAh darn. So this also has my other feature request in it which is to allow hook_node_update to attach a node to a panel too. If you don't like that I can split it into a separate patch.
Comment #5
dave bagler commentedComment #7
minoroffense commented