function views_set_page_view
Set page view.
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 - Get page view.
- 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 1187
Code
function &views_set_page_view($view = NULL) {
static $cache = NULL;
if (isset($view)) {
$cache = $view;
}
return $cache;
}