function drush_set_config_options

8.0.x context.inc drush_set_config_options($context, $options, $override = array())
6.x context.inc drush_set_config_options($context, $options, $override = array())
7.x context.inc drush_set_config_options($context, $options, $override = array())
3.x context.inc drush_set_config_options($context, $options, $override = array())
4.x context.inc drush_set_config_options($context, $options, $override = array())
5.x context.inc drush_set_config_options($context, $options, $override = array())
master context.inc drush_set_config_options($context, $options, $override = array())
2 calls to drush_set_config_options()
drush_load_config_file in includes/context.inc
drush_sitealias_set_alias_context in includes/sitealias.inc
Given a site alias record, copy selected fields from it into the drush 'alias' context. The 'alias' context has lower precedence than the 'cli' context, so values set by an alias record can be overridden by…

File

includes/context.inc, line 179
The Drush context API implementation.

Code

function drush_set_config_options($context, $options, $override = array()) {
  // Copy 'config-file' into 'context-path', converting to an array to hold multiple values if necessary
  if (isset($options['config-file'])) {
    if (isset($options['context-path'])) {
      $options['context-path'] = array_merge(array($options['config-file']), is_array($options['context-path']) ? $options['context-path'] : array($options['context-path']));
    }
    else {
      $options['context-path'] = $options['config-file'];
    }
  }

  // Take out $aliases and $command_specific options
  drush_set_config_special_contexts($options);

  drush_set_context($context, $options);
}