You are here

function views_plugin_query_default::set_distinct in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 7.3 plugins/views_plugin_query_default.inc \views_plugin_query_default::set_distinct()

Set the base field to be distinct.

1 call to views_plugin_query_default::set_distinct()
views_plugin_query_default::build in plugins/views_plugin_query_default.inc
Builds the necessary info to execute the query.

File

plugins/views_plugin_query_default.inc, line 137
views_plugin_query_default.inc Defines the default query object which builds SQL to execute using the Drupal database API.

Class

views_plugin_query_default
Object used to create a SELECT query.

Code

function set_distinct($value = TRUE) {
  if (!(isset($this->no_distinct) && $value)) {
    $this->distinct = $value;
  }
}