You are here

function views_ui_default_load in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 views_ui.module \views_ui_default_load()
  2. 7.3 views_ui.module \views_ui_default_load()

Specialized menu callback to load a view that is only a default view.

File

./views_ui.module, line 310
views_ui.module Provide structure for the administrative interface to Views.

Code

function views_ui_default_load($name) {
  $view = views_get_view($name);
  if ($view->type == t('Default')) {
    return $view;
  }
  return FALSE;
}