function panels_everywhere_ctools_render_alter in Panels Everywhere 6
Same name and namespace in other branches
- 7 panels_everywhere.module \panels_everywhere_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 421 - panels_everywhere.module
Code
function panels_everywhere_ctools_render_alter(&$info, $page, $args, $contexts, $task, $subtask, $handler) {
if ($task['name'] == 'site_template') {
// Make sure the handler actually used is available later on.
$info['handler'] = $handler;
return;
}
if (!empty($handler->conf['panels_everywhere_site_template'])) {
panels_everywhere_set_site_template($handler->conf['panels_everywhere_site_template']);
}
}