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.

Parameters

$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/views_data_export.drush.inc
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/views_data_export.drush.inc
Implementation of drush_hook_COMMAND_validate().
ds_extras_ds_fields_ui_alter in sites/all/modules/ulmus/ds/modules/ds_extras/includes/ds_extras.vd.inc
Implements hook_ds_fields_ui_alter().
ds_extras_vd_bundle_form in sites/all/modules/ulmus/ds/modules/ds_extras/includes/ds_extras.vd.inc
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/admin.inc
Form builder for the "add new view" page.

File

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

Code

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

  ctools_include('export');
  $view = ctools_export_crud_load('views_view', $name);
  if ($view) {
    $view->update();
    return $view->clone_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.