function panels_everywhere_ctools_render_alter in Panels Everywhere 7
Same name and namespace in other branches
- 6 panels_everywhere.module \panels_everywhere_ctools_render_alter()
Implement hook_ctools_render_alter()
When a Page Manager page is rendered, set the selected site template if it has been chosen.
File
- ./
panels_everywhere.module, line 363 - panels_everywhere.module
Code
function panels_everywhere_ctools_render_alter(&$info, &$page, &$context) {
if ($context['task']['name'] == 'site_template') {
// Make sure the handler actually used is available later on.
$info['handler'] = $context['handler'];
return;
}
if (!empty($context['handler']->conf['panels_everywhere_site_template'])) {
panels_everywhere_set_site_template($context['handler']->conf['panels_everywhere_site_template']);
}
}