function 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

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