function views_include
3.x views.module | views_include($file) |
2.x views.module | views_include($file) |
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;
}