function drush_get_command_engine_config

8.0.x engines.inc drush_get_command_engine_config($command, $engine_type, $metadata = array())
6.x engines.inc drush_get_command_engine_config($command, $engine_type, $metadata = array())
7.x engines.inc drush_get_command_engine_config($command, $engine_type, $metadata = array())
master engines.inc drush_get_command_engine_config($command, $engine_type, $metadata = array())

Returns engine config supplied in the command definition.

2 calls to drush_get_command_engine_config()
drush_get_command_format_metadata in commands/core/outputformat.drush.inc
Given a command name or a command record, return the command formatter that is used to process that command's output.
drush_load_command_engine in includes/engines.inc
Selects and loads an engine implementing the given type.

File

includes/engines.inc, line 133
The drush engines API implementation and helpers.

Code

function drush_get_command_engine_config($command, $engine_type, $metadata = array()) {
  if (isset($command['engines'][$engine_type])) {
    $metadata = array_merge($metadata, $command['engines'][$engine_type]);
  }
  return $metadata;
}