You are here

function views_plugin_ds_entity_view::init in Display Suite 7.2

Same name and namespace in other branches
  1. 7 views/views_plugin_ds_entity_view.inc \views_plugin_ds_entity_view::init()

Overrides views_plugin_row::init

File

views/views_plugin_ds_entity_view.inc, line 15
Provides the Display Suite views entity style plugin.

Class

views_plugin_ds_entity_view
Plugin which defines the view mode on the resulting entity object.

Code

function init(&$view, &$display, $options = NULL) {
  parent::init($view, $display, $options);
  $this->base_table = $view->base_table;

  // Special case for apachesolr_views.
  if ($this->base_table == 'apachesolr') {
    $this->base_table = 'node';
  }
  $this->base_field = $this
    ->ds_views_3_support();
  $this->group_count = 0;
}