You are here

function views_navigation_views_pre_render in Views navigation 7

Implements hook_views_pre_render().

If views navigation is enabled for this display, store the query.

File

./views_navigation.module, line 43
Views navigation module.

Code

function views_navigation_views_pre_render(&$view) {
  module_load_include('inc', 'views_navigation');
  if ($view->display_handler
    ->get_option('views_navigation') || $view->display_handler
    ->get_option('views_navigation_back')) {

    // Store the query in cache.
    if ($cid = views_navigation_store_query($view)) {
      $view->views_navigation_cid = $cid;
    }
  }
}