views_set_page_view

6 views.module &views_set_page_view($view = NULL)
7 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()

File

./views.module, line 683
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;
}
Login or register to post comments