function drush_sitealias_evaluate_paths_in_options

8.0.x sitealias.inc drush_sitealias_evaluate_paths_in_options($option_string)
6.x sitealias.inc drush_sitealias_evaluate_paths_in_options($option_string)
7.x sitealias.inc drush_sitealias_evaluate_paths_in_options($option_string)
5.x sitealias.inc drush_sitealias_evaluate_paths_in_options($option_string)
master sitealias.inc drush_sitealias_evaluate_paths_in_options($option_string)

Given a properly-escaped options string, replace any occurance of %files and so on embedded inside it with its corresponding path.

2 calls to drush_sitealias_evaluate_paths_in_options()
drush_archive_dump in commands/core/archive.drush.inc
Command callback. Generate site archive file.
drush_archive_restore in commands/core/archive.drush.inc
Command callback. Restore web site(s) from a site archive file.

File

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

Code

function drush_sitealias_evaluate_paths_in_options($option_string) {
  $path_aliases = _core_path_aliases();
  return str_replace(array_keys($path_aliases), array_values($path_aliases), $option_string);
}