Good Afternoon,

After using radix as a base theme for a project I've noticed that when using panelizer as part of the view mode of an entity (as opposed to full page override) that we end up loosing integration with contextual. Both the quickedit and contextual modules rely on the class contextual-links-region which are passed into relevent preprocess functions however the preprocess in panels.inc resets the array adding 2 values of its own.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dan.munn’s picture

Version: 7.x-3.0-rc2 » 7.x-3.x-dev
Status: Active » Needs review
FileSize
893 bytes
dan.munn’s picture

In hindsight this may not work either (patch proposed) - I'm not all that in favor of a theme duplicating work that modules should be themselves doing, so removing the hook looks more optimal.

Patch attached with radix_preprocess_panelizer_view_mode() removed.

steveoriol’s picture

I get some notices about Undefined indexs of #entity_type and #bundle in radix_preprocess_panelizer_view_mode()
so, I try to remove also this hook...

shadcn’s picture

Assigned: Unassigned » shadcn
FileSize
675 bytes

Not sure why I'm seeing this issue just now. @steveoriol thanks for the ping on this.

It looks like panelizer are now adding the proper classes, so we could do without this preprocess. I'm adding a patch here that keeps the view mode class only for BC.

Let's review.