function views_module_include

3.x views.module views_module_include($api, $reset = FALSE)
2.x views.module views_module_include($file)

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";
    }
  }
}