function drush_sitealias_get_root

8.0.x drush_sitealias_get_root($alias_record)
7.x drush_sitealias_get_root($alias_record)
master 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/
Convert from an alias record to a site specification
drush_sitealias_local_site_path in includes/
Return the full path to the site directory of the given alias record.
_drush_sitealias_add_transient_defaults in includes/
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…


includes/, line 2266
The site alias API.


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