You are here

function views_plugin_row::query in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_row.inc \views_plugin_row::query()
  2. 7.3 plugins/views_plugin_row.inc \views_plugin_row::query()

Add anything to the query that we might need to.

Overrides views_plugin::query

File

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) && 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->base_field;
  }
}