You are here

function views_include in Views (for Drupal 7) 7.3

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

Include views .inc files as necessary.

22 calls to views_include()
drush_views_analyze in drush/views.drush.inc
Analyze all installed views.
plugins.inc in includes/plugins.inc
Built in plugins for Views output handling.
ViewsCacheTest::getBasicView in tests/views_cache.test
Build and return a basic view of the views_test table.
ViewsSqlTest::getBasicPageView in tests/views_query.test
Build and return a Page view of the views_test table.
ViewsSqlTest::getBasicView in tests/views_query.test
Build and return a basic view of the views_test table.

... See full list

File

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

Code

function views_include($file) {
  static $views_path;
  if (!isset($views_path)) {
    $views_path = DRUPAL_ROOT . '/' . drupal_get_path('module', 'views');
  }
  include_once $views_path . '/includes/' . $file . '.inc';
}