public function views_php_handler_field::query in Views PHP 7
Same name and namespace in other branches
- 6 plugins/views/views_php_handler_field.inc \views_php_handler_field::query()
- 7.2 plugins/views/views_php_handler_field.inc \views_php_handler_field::query()
Implements views_handler_field#query().
Overrides views_handler_field::query
See also
File
- plugins/
views/ views_php_handler_field.inc, line 86
Class
- views_php_handler_field
- A handler to provide a field that is constructed by the administrator using PHP.
Code
public function query() {
// Provide an field alias but don't actually alter the query.
$this->field_alias = 'views_php_' . $this->position;
// Inform views_php_views_pre_execute() to seize control over the query.
$this->view->views_php = TRUE;
}