views_set_current_view

6 views.module &views_set_current_view($view = NULL)
7 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 or items in drupal_eval to identify

Return value

view

3 calls to views_set_current_view()

File

./views.module, line 707
Primarily Drupal 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;
}
Login or register to post comments