function views_get_view

cis7 views.module views_get_view($name, $reset = FALSE)
cle7 views.module views_get_view($name, $reset = FALSE)
elmsmedia7 views.module views_get_view($name, $reset = FALSE)
icor7 views.module views_get_view($name, $reset = FALSE)
meedjum_blog7 views.module views_get_view($name, $reset = FALSE)
mooc7 views.module views_get_view($name, $reset = FALSE)

Get a view from the database or from default views.

This function is just a static wrapper around views::load(). This function isn't called 'views_load()' primarily because it might get a view from the default views which aren't technically loaded from the database.


$name: The name of the view.

$reset: If TRUE, reset this entry in the load cache.

Return value

view A reference to the $view object. Use $reset if you're sure you want a fresh one.

43 calls to views_get_view()
drush_views_data_export in sites/all/modules/local_contrib/views_data_export/
Drush command callback to export a views data to a file.
drush_views_data_export_validate in sites/all/modules/local_contrib/views_data_export/
Implementation of drush_hook_COMMAND_validate().
ds_extras_ds_fields_ui_alter in sites/all/modules/ulmus/ds/modules/ds_extras/includes/
Implements hook_ds_fields_ui_alter().
ds_extras_vd_bundle_form in sites/all/modules/ulmus/ds/modules/ds_extras/includes/
Return the views select form to create a bundle.
EntityReference_SelectionHandler_Views::initializeView in sites/all/modules/ulmus/entityreference/plugins/selection/EntityReference_SelectionHandler_Views.class.php

... See full list

1 string reference to 'views_get_view'
views_ui_add_form in sites/all/modules/ulmus/views/includes/
Form builder for the "add new view" page.


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


function views_get_view($name, $reset = FALSE) {
  if ($reset) {
    $cache = &drupal_static('ctools_export_load_object');
    if (isset($cache['views_view'][$name])) {

  $view = ctools_export_crud_load('views_view', $name);
  if ($view) {
    return $view->clone_view();