function views_handler_argument_formula::query
Same name in other branches
- 7.x-3.x handlers/views_handler_argument_formula.inc \views_handler_argument_formula::query()
Build the query based upon the formula
Overrides views_handler_argument::query
File
-
handlers/
views_handler_argument_formula.inc, line 47
Class
- views_handler_argument_formula
- Abstract argument handler for simple formulae.
Code
function query() {
$this->ensure_my_table();
// Now that our table is secure, get our formula.
$formula = $this->get_formula();
$this->query
->add_where(0, "{$formula} = '%s'", $this->argument);
}