Closed (fixed)
Project:
Panels Extras
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2011 at 11:06 UTC
Updated:
20 Sep 2011 at 19:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
osopolarWe can't use ctools_context_get_placeholders_from_argument() because it will only return an empty context, as discription says: Retrieve a list of empty contexts for all arguments. The correct function is ctools_context_handler_get_task_contexts().
Comment #2
chriscalip commentedYeah, is it worth the performance hit to include a context?
I am guessing you are saying yes. I guess in hindsight it really does not matter since we can cache pages.
I'll add on my to-do. Thanks
Comment #3
osopolarWhat performance hit you are talking about? The only one I can see would be node_load, but node_load is caching the node object ... so we loose some performance here, but we will get it back in email_mail_page() ;)
Comment #4
osopolar@chriscalip: so what do you think about the performance hit, is there a performance hit?
Comment #5
chriscalip commented@osopolar : i was just over-thinking about it; it would be negligible really because most of the time we do cache. but even without cache it's not so bad. BTW thank you for your contribution;
commited to dev.
http://drupalcode.org/project/panels_extras.git/commit/f050785