You are here

function views_php_views_post_execute in Views PHP 7

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

Implements hook_views_post_execute().

File

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

Code

function views_php_views_post_execute($view) {

  // Restore original query plugin if it was wrapped.
  if ($view->query instanceof views_php_plugin_wrapper) {
    $view->query
      ->php_unwrap();
  }
}