function drush_sitealias_resolve_sitespecs

8.0.x sitealias.inc drush_sitealias_resolve_sitespecs($site_specifications, $alias_path_context = NULL)
6.x sitealias.inc drush_sitealias_resolve_sitespecs($site_specifications, $alias_path_context = NULL)
7.x sitealias.inc drush_sitealias_resolve_sitespecs($site_specifications, $alias_path_context = NULL)
3.x sitealias.inc drush_sitealias_resolve_sitespecs($site_specifications)
4.x sitealias.inc drush_sitealias_resolve_sitespecs($site_specifications)
5.x sitealias.inc drush_sitealias_resolve_sitespecs($site_specifications, $alias_path_context = NULL)
master sitealias.inc drush_sitealias_resolve_sitespecs($site_specifications, $alias_path_context = NULL)

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.

Parameters

$site_specifications: An array of site specificatins. @see drush_sitealias_get_record

Return value

An array of alias records

1 call to drush_sitealias_resolve_sitespecs()
_drush_sitealias_user_specified_list in commands/core/sitealias.drush.inc
Return the list of sites (aliases or local) that the user specified on the command line. If none were specified, then all are returned.

File

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

Code

function drush_sitealias_resolve_sitespecs($site_specifications) {
  $result_list = array();
  if (!empty($site_specifications)) {
    foreach ($site_specifications as $site) {
      $alias_record = drush_sitealias_get_record($site);
      $result_list = array_merge($result_list, drush_sitealias_resolve_sitelist($alias_record));
    }
  }
  return $result_list;
}