1 views.module &views_set_current_view($view = NULL)

Set the current 'current view' that is being built/rendered so that it is easy for other modules to identify.

Return value

view:

File

core/modules/views/views.module, line 930
Primarily Backdrop hooks and global API functions to manipulate views.

Code

function &views_set_current_view($view = NULL) {
  static $cache = NULL;
  if (isset($view)) {
    $cache = $view;
  }

  return $cache;
}