function views_query::set_distinct

2.x query.inc views_query::set_distinct($value = TRUE)

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;
  }
}