function drush_load_command_engines

8.0.x engines.inc drush_load_command_engines($command)
6.x engines.inc drush_load_command_engines($command)
7.x engines.inc drush_load_command_engines($command)
master engines.inc drush_load_command_engines($command)

Include, instantiate and validate command engines.

Return value

FALSE if a engine doesn't validate.

1 call to drush_load_command_engines()
drush_dispatch in includes/command.inc
Given a command record, dispatch it as if it were the original command. Executes in the currently bootstrapped site using the current option contexts. Note that drush_dispatch will not bootstrap any further than the current command has already…

File

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

Code

function drush_load_command_engines($command) {
  $result = TRUE;
  foreach ($command['engines'] as $engine_type => $config) {
    $result = drush_load_command_engine($command, $engine_type);
    // Stop loading engines if any of them fails.
    if ($result === FALSE) {
      break;
    }
  }
  return $result;
}