You are here

function party_views_plugins in Party 7

Same name and namespace in other branches
  1. 8.2 includes/views/party.views.inc \party_views_plugins()

Implements hook_views_plugins().

File

includes/views/party.views.inc, line 10
party.views.inc Contains Views hooks.

Code

function party_views_plugins() {
  return array(
    'display' => array(
      'party_piece' => array(
        'title' => t('Party component'),
        'help' => t("Display the view as a component for CRM parties."),
        'handler' => 'party_plugin_display_party_piece',
        'theme' => 'views_view',
        'contextual links locations' => array(),
        //'theme' => 'views_attach_display_node_content_view',

        //'theme file' => 'views_attach.theme.inc',

        //'theme path' => drupal_get_path('module', 'views_attach'),

        //'uses hook nodeapi' => TRUE,
        'uses hook party_party_pieces' => TRUE,
        'use ajax' => TRUE,
        'use pager' => TRUE,
        'use more' => FALSE,
        'accept attachments' => TRUE,
        'admin' => t('Party component'),
      ),
    ),
    'row' => array(
      'party_attached_entity' => array(
        'title' => t('Party attached entity'),
        'help' => t('Display entities attached to a party with their default display.'),
        'handler' => 'party_plugin_row_attached_entity',
        'uses fields' => FALSE,
        'uses options' => TRUE,
        'type' => 'normal',
        //'theme' => 'views_view_row_node', // @todo: needed?
        'base' => array(
          'party',
        ),
      ),
    ),
  );
}