You are here

function views_module_include in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 8.3 views.module \views_module_include()
  2. 6.3 views.module \views_module_include()
  3. 6.2 views.module \views_module_include()

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 1256
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());
}