You are here

public function PanelizerEntityUser::hook_default_page_manager_handlers in Panelizer 7.2

Same name and namespace in other branches
  1. 7.3 plugins/entity/PanelizerEntityUser.class.php \PanelizerEntityUser::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/PanelizerEntityUser.class.php, line 82
Class for the Panelizer taxonomy term entity plugin.

Class

PanelizerEntityUser
Panelizer Entity user 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 = 'user_view_panelizer';
  $handler->task = 'user_view';
  $handler->subtask = '';
  $handler->handler = 'panelizer_node';
  $handler->weight = -100;
  $handler->conf = array(
    'title' => t('User panelizer'),
    'context' => 'argument_entity_id:user_1',
    'access' => array(),
  );
  $handlers['user_view_panelizer'] = $handler;
  return $handlers;
}