Reputation: 51
I'm using panels and ctools page manager on Drupal 7 in order to create landing pages. I want to force the use of a specific theme for pages defined with a certain panels layout.
I can use hook_ctools_render_alter to get layout name - $context['handler']->conf['temp_layout']. But I can't figure out how to change the theme in this hook. You can use hook_custom_theme to change theme but there you haven't $context object.
Upvotes: 0
Views: 124