function views_plugin_row_sgrid_style::query in Sortable Grid Views Plugin 6
File
- ./
views_plugin_row_sgrid_style.inc, line 20 - views_plugin_row_sgrid_style.inc Views row style plugin for Sortable grid module
Class
- views_plugin_row_sgrid_style
- The basic 'fields' row plugin
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);
}
}
// This will be used to store the rank associated to the node for this view
$this->view->query
->add_field('node', 'nid');
}