You are here

function views_query::set_distinct in Views (for Drupal 7) 6.2

Set the base field to be distinct.

File

includes/query.inc, line 116
query.inc Defines the query object which is the underlying layer in a View.

Class

views_query
Object used to create a SELECT query.

Code

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