function _drush_sitealias_find_local_sites

8.0.x _drush_sitealias_find_local_sites($search_path)
6.x _drush_sitealias_find_local_sites($search_path)
7.x _drush_sitealias_find_local_sites($search_path)
3.x _drush_sitealias_find_local_sites($search_path)
4.x _drush_sitealias_find_local_sites($search_path)
5.x _drush_sitealias_find_local_sites($search_path)
master _drush_sitealias_find_local_sites($search_path)

Search for drupal installations in the search path.


search_path: An array of drupal root folders

Return value

An array of site specifications (/path/to/

1 call to _drush_sitealias_find_local_sites()
_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 1028
The site alias API.


function _drush_sitealias_find_local_sites($search_path) {
  $result = array();
  foreach ($search_path as $a_drupal_root) {
    $result = array_merge($result, _drush_find_local_sites_at_root($a_drupal_root));
  return $result;