function drush_load_config

8.0.x drush_load_config($context)
6.x drush_load_config($context)
7.x drush_load_config($context)
3.x drush_load_config($context)
4.x drush_load_config($context)
5.x drush_load_config($context)
master 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/
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/
If --root is provided, set context.
drush_preflight_site in includes/


includes/, line 150
The Drush context API implementation.


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