You are here

ds.views.inc in Display Suite 7

Same filename and directory in other branches
  1. 7.2 ds.views.inc

Views hooks file.

File

ds.views.inc
View source
<?php

/**
 * @file
 * Views hooks file.
 */

/**
 * Implements hook_views_plugins().
 */
function ds_views_plugins() {
  $path = drupal_get_path('module', 'ds');
  $views_plugins = array(
    'module' => 'ds',
    'row' => array(
      'ds' => array(
        'title' => t('Display suite'),
        'help' => t('Display the entity with the Display suite module.'),
        'handler' => 'views_plugin_ds_entity_view',
        'path' => $path . '/views',
        'base' => array(
          'node',
          'comment',
          'users',
          'apachesolr',
          'taxonomy_term_data',
          'file_managed',
          'micro',
        ),
        'theme' => 'ds_row_entity',
        'uses options' => TRUE,
        'type' => 'normal',
      ),
    ),
  );
  if (module_exists('ds_extras') && variable_get('ds_extras_vd')) {
    $views_plugins['row']['ds_fields'] = array(
      'uses fields' => TRUE,
      'title' => t('Display suite fields'),
      'help' => t('Display fields through the Display suite module.'),
      'handler' => 'views_plugin_ds_fields_view',
      'path' => $path . '/views',
      'theme' => 'ds_row_fields',
      'theme path' => $path . '/views',
      'theme file' => 'views_plugin_ds_fields_view.inc',
      'uses options' => TRUE,
      'type' => 'normal',
    );
  }
  return $views_plugins;
}

Functions

Namesort descending Description
ds_views_plugins Implements hook_views_plugins().