Closed (fixed)
Project:
Panels
Version:
7.x-3.x-dev
Component:
Mini panels
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2013 at 22:55 UTC
Updated:
16 Jun 2014 at 16:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jwilson3Comment #2
jwilson3Comment #3
jwilson3Comment #4
damienmckennaSomeone really should turn on automatic testing for Panels.
Comment #5
damienmckennaI tested this out on a site with Panels 3.3 and it worked exactly as advertised, nice work James :)
Comment #6
jwilson3Thanks Damien.
It's worth noting that the only part of the patch that I'm not entirely happy with having to do is to use the
strpos()to test the block'sbidfor the module name, when there is a$block->modulemember that's supposed to provide just the info I need; however in my testing, the contextual link alter hook provides the$element['#element']['#block']->module === FALSEfor some unknown reason.The
bidis just a combination of module name and block delta separated by a dash, Eg, for my Footer mini-panel, bid = "panels_mini-footer". So in the endstrpos($bid, $modulename) === 0gives us the needed result.Comment #6.0
jwilson3Mention that this fixes integration with Context module as well.
Comment #7
japerryFixed!
http://drupalcode.org/project/panels.git/commit/1833f49