public function PanelizerEntityNode::hook_default_page_manager_handlers in Panelizer 7.3
Same name and namespace in other branches
- 7.2 plugins/entity/PanelizerEntityNode.class.php \PanelizerEntityNode::hook_default_page_manager_handlers()
Implements a delegated hook_page_manager_handlers().
This makes sure that all panelized entities have the proper entry in page manager for rendering.
File
- plugins/
entity/ PanelizerEntityNode.class.php, line 131 - Class for the Panelizer node entity plugin.
Class
- PanelizerEntityNode
- Panelizer Entity node plugin class.
Code
public function hook_default_page_manager_handlers(&$handlers) {
$handler = new stdClass();
$handler->disabled = FALSE;
/* Edit this to true to make a default handler disabled initially */
$handler->api_version = 1;
$handler->name = 'node_view_panelizer';
$handler->task = 'node_view';
$handler->subtask = '';
$handler->handler = 'panelizer_node';
$handler->weight = -100;
$handler->conf = array(
'title' => t('Node panelizer'),
'context' => 'argument_entity_id:node_1',
'access' => array(),
);
$handlers['node_view_panelizer'] = $handler;
return $handlers;
}