function _drush_sitealias_add_inherited_values_to_record

8.0.x _drush_sitealias_add_inherited_values_to_record(&$alias_value)
6.x _drush_sitealias_add_inherited_values_to_record(&$alias_value)
7.x _drush_sitealias_add_inherited_values_to_record(&$alias_value)
5.x _drush_sitealias_add_inherited_values_to_record(&$alias_value)
master _drush_sitealias_add_inherited_values_to_record(&$alias_value)
3 calls to _drush_sitealias_add_inherited_values_to_record()
drush_sitealias_lookup_alias_by_path in includes/
Look for a defined alias that points to the specified site directory. The cache is tested first; if nothing is cached, then an exhaustive search is done for the specified site. If the exhaustive search returns a match, then it is cached.
drush_sitealias_quick_lookup_cached_alias_by_path in includes/
Look for a cached alias that points to the specified site directory. Nothing is returned if there is no matching cached alias.
_drush_sitealias_add_inherited_values in includes/
Check to see if there is a 'parent' item in the alias; if there is, then load the parent alias record and overlay the entries in the current alias record on top of the items from the parent record.


includes/, line 803
The site alias API.


function _drush_sitealias_add_inherited_values_to_record(&$alias_value) {
  drush_command_invoke_all_ref('drush_sitealias_alter', $alias_value);
  if (isset($alias_value['parent'])) {
    drush_log(dt("Using deprecated 'parent' element '!parent' in '!name'.", array('!parent' => $alias_value['parent'], '!name' => $alias_value['#name'])), LogLevel::DEBUG);
    // Fetch and merge in each parent
    foreach (explode(',', $alias_value['parent']) as $parent) {
      $parent_record = drush_sitealias_get_record($parent);
      $array_based_keys = array_merge(drush_get_special_keys(), array('path-aliases'));
      foreach ($array_based_keys as $array_based_key) {
        if (isset($alias_value[$array_based_key]) && isset($parent_record[$array_based_key])) {
          $alias_value[$array_based_key] = array_merge($parent_record[$array_based_key], $alias_value[$array_based_key]);
      $alias_value = array_merge($parent_record, $alias_value);