Closed (fixed)
Project:
Panels Everywhere
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
4 Nov 2010 at 13:13 UTC
Updated:
31 Jan 2015 at 16:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
henrijs.seso commentedis this the same?
_page_manager_contexts_alter(&$contexts, $placeholders)Comment #2
merlinofchaos commentedAh yes. It appears the README.txt misnames the hook. It's an _alter:
So that would be hook_page_manager_contexts_alter(&$contexts, $placeholders);
Comment #3
henrijs.seso commentedI am testing PA and it appears the docs are off, ill try to provide update when I wrap my mind around it :)
Comment #4
Letharion commentedAnswered by merlin.
Comment #5
merlinofchaos commentedIt sounds like there's a doc update needed here.
Comment #6
Letharion commented@merlinofchaos
Would you please verify that this gets it right? :)
Comment #7
Letharion commentedComment #8
merlinofchaos commentedYou know, I think the documentation is right and the code is wrong.
the drupal_alter call should be adjusted. This really is a panels_everywhere specific set of contexts and should be namespaced accordingly.
Comment #9
Letharion commentedComment #10
stevectorThis naming inconsistency is present in 7.x as well. Here's a patch.
This is an API change. I'm not sure if rc1 is too late for that. If so, Panels Everywhere could call both alter hooks and document the discrepancy.
Comment #11
damienmckennaI don't think this needs any further work, e.g. more documentation, but it gets a +1 from me.
Comment #14
damienmckennaI'm committing it as-is, but I'll need to do a change notice before the 1.0 release.
Comment #15
damienmckennaComment #16
damienmckennaI've created a draft change record, it'll be published along with 1.0.