function views_include in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 8.3 views.module \views_include()
- 6.3 views.module \views_include()
- 7.3 views.module \views_include()
Include views .inc files as necessary.
24 calls to views_include()
- drupal_build_form in ./
views.module - Views' replacement for drupal_get_form so that we can do more with less.
- template_preprocess_views_ui_edit_view in includes/
admin.inc - Preprocess the view edit page.
- view::init_query in includes/
view.inc - Do some common building initialization.
- views_ajax in includes/
ajax.inc - Menu callback to load a view via AJAX.
- views_block in ./
views.module - Implementation of hook_block
File
- ./
views.module, line 560 - 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;
}