function views_get_current_view in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 8.3 views.module \views_get_current_view()
- 5 views.module \views_get_current_view()
- 6.2 views.module \views_get_current_view()
- 7.3 views.module \views_get_current_view()
Find out what, if any, current view is currently in use. Please note that this returns a reference, so be careful! You can unintentionally modify the $view object.
Return value
view
2 calls to views_get_current_view()
- view::pre_execute in includes/
view.inc - Run attachments and let the display do what it needs to do prior to running.
- views_join::join in includes/
handlers.inc - Build the SQL for the join this object represents.
File
- ./
views.module, line 723 - Primarily Drupal hooks and global API functions to manipulate views.
Code
function &views_get_current_view() {
return views_set_current_view();
}