You are here

function views_include in Views (for Drupal 7) 8.3

Same name and namespace in other branches
  1. 6.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.

5 calls to views_include()
DisplayPluginBase::init in lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
views_block_info in ./views.module
Implement hook_block_info().
views_fetch_data in ./views.module
Fetch Views' data from the cache
views_include_handlers in ./views.module
Load views files on behalf of modules.
views_ui_ajax_form in views_ui/admin.inc
Generic entry point to handle forms.

File

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

Code

function views_include($file) {
  module_load_include('inc', 'views', 'includes/' . $file);
}