Closed (fixed)
Project:
Fieldable Panels Panes (FPP)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
1 May 2012 at 02:46 UTC
Updated:
25 Mar 2017 at 20:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedComment #2
helior commentedIt looks like the alter hook was already added here: http://drupalcode.org/project/fieldable_panels_panes.git/blobdiff/063fbb...
However still, delegating the render of the content will allow hook_panels_pane_content_alter() to attach js/css to the render array, rather than calling drupal_add_*, which is absolutely vital if you're using panel caching.
I'm updating the patch to just skip rendering the content early.
Comment #3
twistor commentedLooks good.
Comment #4
merlinofchaos commentedThis seems reasonable. We should watch out because it is potentially possible but highly unlikely that someone is calling the view function assuming they'll get rendered content back. However our internal calls appear to all be okay with rendered or unrendered, so this is okay for us.
Committed and pushed.