function views_plugin_query_default::clear_fields in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 7.3 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 735 - views_plugin_query_default.inc Defines the default query object which builds SQL to execute using the Drupal database API.
Class
- views_plugin_query_default
- Object used to create a SELECT query.
Code
function clear_fields() {
$this->fields = array();
}