function views_plugin_ds_entity_view::init in Display Suite 7
Same name and namespace in other branches
- 7.2 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 13 - 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();
}