1 views_handler_argument_formula.inc views_handler_argument_formula::summary_query()

Build the summary query based on a formula

Overrides views_handler_argument::summary_query

File

core/modules/views/handlers/views_handler_argument_formula.inc, line 38
Definition of views_handler_argument_formula.

Class

views_handler_argument_formula
Abstract argument handler for simple formulae.

Code

function summary_query() {
  $this->ensure_my_table();
  // Now that our table is secure, get our formula.
  $formula = $this->get_formula();

  // Add the field.
  $this->base_alias = $this->name_alias = $this->query->add_field(NULL, $formula, $this->field);
  $this->query->set_count_field(NULL, $formula, $this->field);

  return $this->summary_basics(FALSE);
}