You are here

function views_php_views_pre_execute in Views PHP 7.2

Same name and namespace in other branches
  1. 8 views_php.module \views_php_views_pre_execute()
  2. 6 views_php.module \views_php_views_pre_execute()
  3. 7 views_php.module \views_php_views_pre_execute()

Implements hook_views_pre_execute().

File

./views_php.module, line 145
Allows to use PHP in views.

Code

function views_php_views_pre_execute($view) {

  // Seize control over the query plugin if a views handler requested so.
  if (!empty($view->views_php)) {
    $query = new views_php_plugin_query();
    $query
      ->php_wrap($view->query);
  }
}