function drush_sitealias_overlay_options

8.0.x sitealias.inc drush_sitealias_overlay_options($site_alias_record, $prefix)
6.x sitealias.inc drush_sitealias_overlay_options($site_alias_record, $prefix)
7.x sitealias.inc drush_sitealias_overlay_options($site_alias_record, $prefix)
5.x sitealias.inc drush_sitealias_overlay_options($site_alias_record, $prefix)
master sitealias.inc drush_sitealias_overlay_options($site_alias_record, $prefix)

Given an alias record, overwrite its values with options from the command line and other drush contexts as specified by the provided prefix. For example, if the prefix is 'source-', then any option 'source-foo' will set the value 'foo' in the alias record.

1 call to drush_sitealias_overlay_options()
drush_sql_sync in commands/sql/sync.sql.inc

File

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

Code

function drush_sitealias_overlay_options($site_alias_record, $prefix) {
  return array_merge($site_alias_record, drush_get_merged_prefixed_options($prefix));
}