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.

CommentFileSizeAuthor
#2 2788915-multiple.patch4.11 KBminoroffense

Comments

minorOffense created an issue. See original summary.

minoroffense’s picture

StatusFileSize
new4.11 KB

Patch attached.

minoroffense’s picture

All 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.

minoroffense’s picture

Ah 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.

dave bagler’s picture

Assigned: Unassigned » minoroffense
Status: Active » Patch (to be ported)

  • minorOffense committed dccc611 on 7.x-1.x
    Issue #2788915 by minorOffense: Allow a node to be attached to multiple...
minoroffense’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Project: » Lost & found issues

This issue’s project has disappeared. Most likely, it was a sandbox project, which can be deleted by its maintainer. See the Lost & found issues project page for more details. (The missing project ID was 2756615)