function views_plugin_ds_object_view::init in Display Suite 6.2
Same name and namespace in other branches
- 6.3 views/views_plugin_ds_object_view.inc \views_plugin_ds_object_view::init()
- 6 views/views_plugin_ds_object_view.inc \views_plugin_ds_object_view::init()
File
- views/
views_plugin_ds_object_view.inc, line 14 - Contains the ds views node style plugin.
Class
- views_plugin_ds_object_view
- Plugin which sets a build mode on the resulting object.
Code
function init(&$view, &$display, $options = NULL) {
parent::init($view, $display, $options);
if (version_compare(views_api_version(), '2.0') == 1) {
$this->base_table = $view->base_table;
// Special case for apachesolr_views.
if ($this->base_table == 'apachesolr_node' || $this->base_table == 'apachesolr') {
$this->base_table = 'node';
}
$this->base_field = $this
->ds_views_3_support();
}
}