You are here

function views_php_views_post_execute in Views PHP 6

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

Implements hook_views_post_execute().

1 call to views_php_views_post_execute()
views_php_views_pre_render in ./views_php.module
Implements hook_views_pre_render().

File

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

Code

function views_php_views_post_execute($view) {
  foreach (array(
    /*'argument',*/
    'field',
    'filter',
    'sort',
  ) as $type) {
    foreach ($view->{$type} as $id => $handler) {
      if (is_callable(array(
        $handler,
        'php_post_execute',
      ))) {
        $handler
          ->php_post_execute();
      }
    }
  }
  if (!empty($view->php_pager)) {
    $view->php_pager
      ->slice();
  }
  $view->php_post_executed = TRUE;
}