function views_query_default_aggregation_method_distinct

1 string reference to 'views_query_default_aggregation_method_distinct'
views_plugin_query_default::get_aggregation_info in plugins/views_plugin_query_default.inc
Get aggregation info for group by queries.

File

plugins/views_plugin_query_default.inc, line 1718

Code

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