function _drush_sitealias_find_local_sites

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

Search for drupal installations in the search path.

Parameters

search_path: An array of drupal root folders

Return value

An array of site specifications (/path/to/root#sitename.com)

1 call to _drush_sitealias_find_local_sites()
_drush_sitealias_initialize_alias_record in includes/sitealias.inc
Initialize an alias record; called as soon as the alias record is loaded from its alias file, before it is stored in the cache.

File

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

Code

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