function views_get_current_view

cis7 views.module &views_get_current_view()
cle7 views.module &views_get_current_view()
elmsmedia7 views.module &views_get_current_view()
icor7 views.module &views_get_current_view()
meedjum_blog7 views.module &views_get_current_view()
mooc7 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

1 call to views_get_current_view()
view::pre_execute in sites/all/modules/ulmus/views/includes/view.inc
Run attachments and let the display do what it needs to do prior to running.

File

sites/all/modules/ulmus/views/views.module, line 1058
Primarily Drupal hooks and global API functions to manipulate views.

Code

function &views_get_current_view() {
  return views_set_current_view();
}
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.