function drush_sitealias_load_all

8.0.x sitealias.inc drush_sitealias_load_all($resolve_parent = TRUE)
6.x sitealias.inc drush_sitealias_load_all($resolve_parent = TRUE)
7.x sitealias.inc drush_sitealias_load_all($resolve_parent = TRUE)
3.x sitealias.inc drush_sitealias_load_all($resolve_parent = TRUE)
4.x sitealias.inc drush_sitealias_load_all($resolve_parent = TRUE)
5.x sitealias.inc drush_sitealias_load_all($resolve_parent = TRUE)
master sitealias.inc drush_sitealias_load_all($resolve_parent = TRUE)

Load every alias file that can be found anywhere in the alias search path.

2 calls to drush_sitealias_load_all()
drush_core_config_load in commands/core/core.drush.inc
_drush_sitealias_all_list in commands/core/sitealias.drush.inc
Return the list of all site aliases and all local sites.

File

includes/sitealias.inc, line 517
The site alias API.

Code

function drush_sitealias_load_all($resolve_parent = TRUE) {
  $result = _drush_sitealias_find_and_load_all_aliases();
  if (!empty($result) && ($resolve_parent == TRUE)) {
    // If any aliases were returned, then check for
    // inheritance and then store the aliases into the
    // alias cache
    _drush_sitealias_add_inherited_values($result);
    $alias_options = array('site-aliases' => $result);
    drush_set_config_special_contexts($alias_options);
  }
}