function views_set_page_view

cis7 views.module &views_set_page_view($view = NULL)
cle7 views.module &views_set_page_view($view = NULL)
elmsmedia7 views.module &views_set_page_view($view = NULL)
icor7 views.module &views_set_page_view($view = NULL)
meedjum_blog7 views.module &views_set_page_view($view = NULL)
mooc7 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 sites/all/modules/ulmus/views/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 sites/all/modules/ulmus/views/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

sites/all/modules/ulmus/views/views.module, line 1015
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;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.