You are here

function PanelizerEntityNode::hook_views_plugins_alter in Panelizer 7.2

Same name and namespace in other branches
  1. 7.3 plugins/entity/PanelizerEntityNode.class.php \PanelizerEntityNode::hook_views_plugins_alter()

Implements hook_views_plugins_alter().

File

plugins/entity/PanelizerEntityNode.class.php, line 250
Class for the Panelizer node entity plugin.

Class

PanelizerEntityNode
Panelizer Entity node plugin class.

Code

function hook_views_plugins_alter(&$plugins) {

  // While it would be nice to genericize this plugin, there is no
  // generic entity view. This means that to genericize it we'll still
  // need to have each entity know how to do the view individually.
  // @todo make this happen.
  $path = drupal_get_path('module', 'panelizer') . '/plugins/views';
  $plugins['row']['panelizer_node_view'] = array(
    'title' => t('Panelizer display'),
    'help' => t('Render entities using the panels display for any that have been panelized.'),
    'handler' => 'panelizer_plugin_row_panelizer_node_view',
    'parent' => 'node',
    'base' => array(
      'node',
    ),
    'path' => $path,
    'uses options' => TRUE,
    'type' => 'normal',
    'register theme' => FALSE,
  );
}