1 views_plugin_query_default.inc views_query_default_aggregation_method_distinct($group_type, $field)

File

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

Code

function views_query_default_aggregation_method_distinct($group_type, $field) {
  $group_type = str_replace('_distinct', '', $group_type);
  return strtoupper($group_type) . '(DISTINCT ' . $field . ')';
}