function drush_sitealias_resolve_sitelist

8.0.x drush_sitealias_resolve_sitelist($alias_record)
6.x drush_sitealias_resolve_sitelist($alias_record)
7.x drush_sitealias_resolve_sitelist($alias_record)
3.x drush_sitealias_resolve_sitelist($alias_record)
4.x drush_sitealias_resolve_sitelist($alias_record)
5.x drush_sitealias_resolve_sitelist($alias_record)
master drush_sitealias_resolve_sitelist($alias_record)

Given an alias record that is a site list (contains a 'site-list' entry), resolve all of the members of the site list and return them is an array of alias records.


$alias_record: The site list alias record array

Return value

An array of individual site alias records

3 calls to drush_sitealias_resolve_sitelist()
drush_do_multiple_command in includes/
Used by functions that operate on lists of sites, moving information from the source to the destination. Currenlty this includes 'drush rsync' and 'drush sql sync'.
drush_sitealias_resolve_sitespecs in includes/
Given an array of site specifications, resolve each one in turn and return an array of alias records. If you only want a single record, it is preferable to simply call drush_sitealias_get_record directly.
_drush_sitealias_initialize_alias_record in includes/
Initialize an alias record; called as soon as the alias record is loaded from its alias file, before it is stored in the cache.


includes/, line 752
The site alias API.


function drush_sitealias_resolve_sitelist($alias_record) {
  $result_list = array();
  if (isset($alias_record)) {
    if (array_key_exists('site-list', $alias_record)) {
      foreach ($alias_record['site-list'] as $sitespec) {
        $one_result = drush_sitealias_get_record($sitespec);
        $result_list = array_merge($result_list, drush_sitealias_resolve_sitelist($one_result));
    elseif (array_key_exists('#name', $alias_record)) {
      $result_list[$alias_record['#name']] = $alias_record;

  return $result_list;