You are here

public function PanelizerEntityComment::hook_default_page_manager_handlers in Panelizer 7.3

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/PanelizerEntityComment.class.php, line 60
Class for the Panelizer comment entity plugin.

Class

PanelizerEntityComment
Panelizer Entity comment 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 = 'comment_view_panelizer';
  $handler->task = 'comment_view';
  $handler->subtask = '';
  $handler->handler = 'panelizer_node';
  $handler->weight = -100;
  $handler->conf = array(
    'title' => t('Comment panelizer'),
    'context' => 'argument_entity_id:comment_1',
    'access' => array(),
  );
  $handlers['comment_view_panelizer'] = $handler;
  return $handlers;
}