You are here

function views_php_views_post_build in Views PHP 7.2

Same name and namespace in other branches
  1. 7 views_php.module \views_php_views_post_build()

Implements hook_views_post_build().

File

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

Code

function views_php_views_post_build($view) {

  // Clear the limit and offset
  if (!empty($view->views_php) && !empty($view->build_info['query']) && is_object($view->build_info['query'])) {
    $view->build_info['query']
      ->range();
  }
}