function PanelizerEntityNode::hook_views_plugins_alter in Panelizer 7.3
Same name and namespace in other branches
- 7.2 plugins/entity/PanelizerEntityNode.class.php \PanelizerEntityNode::hook_views_plugins_alter()
Implements hook_views_plugins_alter().
File
- plugins/
entity/ PanelizerEntityNode.class.php, line 280 - 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 generalize this plugin, there is no generic
// entity view. This means that to generalize 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,
'module' => 'panelizer',
'type' => 'normal',
'register theme' => FALSE,
'name' => 'panelizer_node_view',
);
}