1 views_plugin_row.inc views_plugin_row::query()

Add anything to the query that we might need to.

Overrides views_plugin::query

File

core/modules/views/plugins/views_plugin_row.inc, line 109
Contains the base row style plugin.

Class

views_plugin_row
Default plugin to view a single row of a table. This is really just a wrapper around a theme function.

Code

function query() {
  if (isset($this->base_table)) {
    if (isset($this->options['relationship']) && isset($this->view->relationship[$this->options['relationship']])) {
      $relationship = $this->view->relationship[$this->options['relationship']];
      $this->field_alias = $this->view->query->add_field($relationship->alias, $this->base_field);
    }
    else {
      $this->field_alias = $this->view->query->add_field($this->base_table, $this->base_field);
    }
  }
}