You are here

function views_php_handler_field::query in Views PHP 7.2

Same name and namespace in other branches
  1. 6 plugins/views/views_php_handler_field.inc \views_php_handler_field::query()
  2. 7 plugins/views/views_php_handler_field.inc \views_php_handler_field::query()

Implements views_handler_field#query().

Overrides views_handler_field::query

See also

views_php_views_pre_execute()

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

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;
}