function views_module_include
Same name in other branches
- 7.x-3.x 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
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}";
}
}
}