Created
February 5, 2015 18:53
-
-
Save rang501/f7622418bb07e47b4b04 to your computer and use it in GitHub Desktop.
Rendering panelizer programmatically
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module_load_include('inc', 'page_manager', 'plugins/tasks/node_view'); | |
// Set page manager to standard, prevents ipe conflicts. | |
$entity[$entity_key[0]]->panelizer['page_manager']->pipeline = "standard"; | |
$pm = &$entity[$entity_key[0]]->panelizer['page_manager']; | |
// Page tabs have wrong links, better to disable them. | |
foreach ($pm->display->content as &$content) { | |
if ($content->type == 'page_tabs') { | |
$content->shown = FALSE; | |
} | |
} | |
$page_manager = page_manager_node_view_page($entity[$entity_key[0]]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment