You are here

function views_php_views_post_build in Views PHP 7

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

Implements hook_views_post_build().

File

./views_php.module, line 157
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();
  }
}