1 views_plugin_query_default.inc views_plugin_query_default::add_groupby($clause)

Add a simple GROUP BY clause to the query. The caller is responsible for ensuring that the fields are fully qualified and the table is properly added.

File

core/modules/views/plugins/views_plugin_query_default.inc, line 1064
Defines the default query object.

Class

views_plugin_query_default
Object used to create a SELECT query.

Code

function add_groupby($clause) {
  // Only add it if it's not already in there.
  if (!in_array($clause, $this->groupby)) {
    $this->groupby[] = $clause;
  }
}