function views_plugin_query_default::clear_fields

Same name in other branches
  1. 6.x-3.x plugins/views_plugin_query_default.inc \views_plugin_query_default::clear_fields()

Remove all fields that may've been added.

Primarily used for summary mode where we're changing the query because we didn't get data we needed.

File

plugins/views_plugin_query_default.inc, line 859

Class

views_plugin_query_default
Object used to create a SELECT query.

Code

public function clear_fields() {
    $this->fields = array();
}