Hot answers tagged

1

I'm not sure if this is quite what you're after, but these hooks will fire if your page is using panelizer. /** * Implements hook_preprocess_panels_pane(). */ function YOURTHEME_preprocess_panels_pane(&$$variables) { // If this triggers then you are in a panels pane. } OR /** * Implements hook_panels_pane_content_alter(). */ function ...


1

Another simpler option is to use the hook_panels_ipe_blocks_alter() hook in a custom module of yours and apply the necessary logic. An example is documented in panels_ipe.api.php: function hook_panels_ipe_blocks_alter(array &$blocks, PanelsDisplayVariant $panels_display) { // Only show blocks that were provided by the 'mymodule' module. foreach ($...


Only top voted, non community-wiki answers of a minimum length are eligible