function drush_sitealias_get_root

8.0.x sitealias.inc drush_sitealias_get_root($alias_record)
7.x sitealias.inc drush_sitealias_get_root($alias_record)
master sitealias.inc drush_sitealias_get_root($alias_record)

Return the site root, if there is one in the record.

3 calls to drush_sitealias_get_root()
drush_sitealias_alias_record_to_spec in includes/sitealias.inc
Convert from an alias record to a site specification
drush_sitealias_local_site_path in includes/sitealias.inc
Return the full path to the site directory of the given alias record.
_drush_sitealias_add_transient_defaults in includes/sitealias.inc
Add "transient" default values to the given alias record. The difference between a static default and a transient default is that static defaults -always- exist in the alias record, whereas transient defaults are only added if the given…

File

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

Code

function drush_sitealias_get_root($alias_record) {
  return array_key_exists('root', $alias_record) ? $alias_record['root'] : NULL;
}