function views_module_include in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 8.3 views.module \views_module_include()
- 6.2 views.module \views_module_include()
- 7.3 views.module \views_module_include()
Load views files on behalf of modules.
4 calls to views_module_include()
- views1_import in includes/
convert.inc - Convert a Views 1 view to a Views 2 view.
- ViewsSqlTest::enableViewsUi in tests/
views_query.test - This function allows to enable views ui from a higher class which can't change the setup function anymore.
- _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 745 - Primarily Drupal hooks and global API functions to manipulate views.
Code
function views_module_include($file, $reset = FALSE) {
foreach (views_get_module_apis($reset) as $module => $info) {
if (file_exists("./{$info['path']}/{$module}.{$file}")) {
require_once "./{$info['path']}/{$module}.{$file}";
}
}
}