function views_plugin_row::query
3.x views_plugin_row.inc | views_plugin_row::query() |
2.x 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;
}
}