function 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

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';
}