You are here

function views_include in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 8.3 views.module \views_include()
  2. 6.2 views.module \views_include()
  3. 7.3 views.module \views_include()

Include views .inc files as necessary.

27 calls to views_include()
drupal_build_form in ./views.module
Views' replacement for drupal_get_form so that we can do more with less.
drush_views_analyze in drush/views.drush.inc
template_preprocess_views_ui_edit_view in includes/admin.inc
Preprocess the view edit page.
ViewsSqlTest::getBasicView in tests/views_query.test
Build and return a basic view of the views_test table.
views_ajax in includes/ajax.inc
Menu callback to load a view via AJAX.

... See full list

File

./views.module, line 733
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_include($file) {
  static $used = array();
  if (!isset($used[$file])) {
    require_once './' . drupal_get_path('module', 'views') . "/includes/{$file}.inc";
  }
  $used[$file] = TRUE;
}