function views_set_page_view in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 8.3 views.module \views_set_page_view()
- 6.3 views.module \views_set_page_view()
- 6.2 views.module \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 - 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;
}