function views_include

Same name in other branches
  1. 7.x-3.x 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

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