function drush_load_config

8.0.x context.inc drush_load_config($context)
6.x context.inc drush_load_config($context)
7.x context.inc drush_load_config($context)
3.x context.inc drush_load_config($context)
4.x context.inc drush_load_config($context)
5.x context.inc drush_load_config($context)
master context.inc drush_load_config($context)

Load drushrc files (if available) from several possible locations.

5 calls to drush_load_config()
DrupalBoot::bootstrap_drupal_root in lib/Drush/Boot/DrupalBoot.php
Bootstrap Drush with a valid Drupal Directory.
DrupalBoot::bootstrap_drupal_site in lib/Drush/Boot/DrupalBoot.php
Initialize a site on the Drupal root.
drush_preflight in includes/preflight.inc
During the initialization of Drush, this is the first step where we load our configuration and commandfiles, and select the site we are going to operate on; however, we take no irreversible actions (e.g. site bootstrapping). This allows commands that…
drush_preflight_root in includes/preflight.inc
If --root is provided, set context.
drush_preflight_site in includes/preflight.inc

File

includes/context.inc, line 150
The Drush context API implementation.

Code

function drush_load_config($context) {
  drush_load_config_file($context, _drush_config_file($context));
  drush_load_config_file($context, _drush_config_file($context, '', DRUSH_MAJOR_VERSION));
}