function views_set_page_view

3.x views.module &views_set_page_view($view = NULL)
2.x views.module &views_set_page_view($view = NULL)

Set the current 'page view' that is being displayed so that it is easy for other modules or the theme to identify.

2 calls to views_set_page_view()
views_get_page_view in ./views.module
Find out what, if any, page view is currently in use. Please note that this returns a reference, so be careful! You can unintentionally modify the $view object.
views_plugin_display_page::execute in plugins/views_plugin_display_page.inc
The display page handler returns a normal view, but it also does a drupal_set_title for the page, and does a views_set_page_view on the view.

File

./views.module, line 514
Primarily Drupal hooks and global API functions to manipulate views.

Code

function &views_set_page_view($view = NULL) {
  static $cache = NULL;
  if (isset($view)) {
    $cache = $view;
  }

  return $cache;
}