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.

5 calls to views_module_include()
ViewsAnalyzeTest::setUp in tests/views_analyze.test
Sets up a Drupal site for running functional and integration tests.
ViewsExposedFormTest::setUp in tests/views_exposed_form.test
Sets up a Drupal site for running functional and integration tests.
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_get_all_templates in ./views.module
Get all view templates.
views_include_handlers in ./views.module
Load views files on behalf of modules.

File

./views.module, line 1072
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_module_include($api, $reset = FALSE) {
  if ($reset) {
    $cache = &drupal_static('ctools_plugin_api_info');
    if (isset($cache['views']['views'])) {
      unset($cache['views']['views']);
    }
  }
  ctools_include('plugins');
  return ctools_plugin_api_include('views', $api, views_api_minimum_version(), views_api_version());
}