function views_set_page_view
Same name in other branches
- 7.x-3.x views.module \views_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 - 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 683
Code
function &views_set_page_view($view = NULL) {
static $cache = NULL;
if (isset($view)) {
$cache = $view;
}
return $cache;
}