You are here

function PanelizerEntityBean::hook_views_plugins_alter in Bean (for Drupal 7) 7

Implements hook_views_plugins_alter().

File

plugins/entity/PanelizerEntityBean.class.php, line 133
Class for the Panelizer bean entity plugin.

Class

PanelizerEntityBean
Panelizer Entity bean plugin class.

Code

function hook_views_plugins_alter(&$plugins) {
  $path = drupal_get_path('module', 'panelizer') . '/plugins/views';
  $plugins['row']['panelizer_bean_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_bean_view',
    'parent' => 'bean',
    'base' => array(
      'bean',
    ),
    'path' => $path,
    'uses options' => TRUE,
    'type' => 'normal',
    'register theme' => FALSE,
    'name' => 'panelizer_bean_view',
  );
}