1 views_handler_field_field.inc views_handler_field_field::add_field_table($use_groupby)

Determine if the field table should be added to the query.

File

core/modules/field/views/views_handler_field_field.inc, line 284
Definition of views_handler_field_field.

Class

views_handler_field_field
A field that displays fieldapi fields.

Code

function add_field_table($use_groupby) {
  // Grouping is enabled, or we are explicitly required to do this.
  if ($use_groupby || !empty($this->definition['add fields to query'])) {
    return TRUE;
  }
  // This a multiple value field, but "group multiple values" is not checked.
  if ($this->multiple && !$this->options['group_rows']) {
    return TRUE;
  }
  return FALSE;
}