function views_module_include in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 8.3 views.module \views_module_include()
- 6.3 views.module \views_module_include()
- 7.3 views.module \views_module_include()
Load views files on behalf of modules.
3 calls to views_module_include()
- views1_import in includes/
convert.inc - Convert a Views 1 view to a Views 2 view.
- _views_include_default_views in includes/
cache.inc - Load default views files on behalf of modules.
- _views_include_handlers in includes/
cache.inc - Load views files on behalf of modules.
File
- ./
views.module, line 572 - Primarily Drupal hooks and global API functions to manipulate views.
Code
function views_module_include($file) {
foreach (views_get_module_apis() as $module => $info) {
if (file_exists("./{$info['path']}/{$module}.{$file}")) {
require_once "./{$info['path']}/{$module}.{$file}";
}
}
}