You are here

function configuration_include in Configuration Management 7

Load includes for any modules that implement the configuration API and load includes for those provided by configuration.

18 calls to configuration_include()
configuration_activate_form in ./configuration.admin.inc
Menu Callback Form.
configuration_check_configurations in ./configuration.module
Check each configuration that is being tracked and determine if anything has been overridden. Not able to just run a diff on an entire file because we need to know which specific configurations are out of sync. Log any results as…
configuration_confirm_delete in ./configuration.admin.inc
Form for deleting configs.
configuration_confirm_delete_multiple in ./configuration.admin.inc
Form for deleting configs.
configuration_download_config in ./configuration.admin.inc
Download the entire configuration packaged up into zip file

... See full list

File

./configuration.module, line 314
Module file for the configuration module, which enables the capture and management of configuration in Drupal.

Code

function configuration_include($reset = FALSE) {
  static $once;
  if (!isset($once) || $reset) {
    $once = TRUE;

    // Check for implementing modules and make necessary inclusions.
    foreach (module_implements('configuration_api') as $module) {
      $info = module_invoke($module, 'configuration_api');
      foreach ($info as $component) {
        if (isset($component['file'])) {
          require_once DRUPAL_ROOT . '/' . $component['file'];
        }
      }
    }

    // configuration provides integration on behalf of these modules.
    // The configuration include provides handling for the configuration dependencies.
    // Note that ctools is placed last because it implements hooks "dynamically" for other modules.
    $modules = array(
      'configuration',
      'block',
      'context',
      'field',
      'filter',
      'image',
      'menu',
      'node',
      'taxonomy',
      'user',
      'views',
      'ctools',
    );
    foreach (array_filter($modules, 'module_exists') as $module) {
      if (!module_hook($module, 'configuration_api')) {
        module_load_include('inc', 'configuration', "includes/configuration.{$module}");
      }
    }

    // Clear static cache, since we've now included new implementers.
    module_implements('configuration_api', FALSE, TRUE);
  }
}