drush-ops/drush — pull request #647 by chaby1 (2014-05-28 08:31:29+00:00)
Title: fix install core with further drivers

With Drupal 7, when you have further SGBD drivers (mysql, postgreSQL, SQLite) and settings.php doesn't contains yet any database settings (so step is not skipped), in install_settings_form, all SGDB have some fields required, so including SGBD you won't use.

Install settings form play with limit validation error to prevent having some other SGBD fields required than the driver you choose.
But with drush, as install step is not interactive, the triggering form submit element is not set and so limit validation errors not applied.
As a result, you got some errors with the "drush si" command ("dababase name and user fields are required") for other SGDB you didn't use and the installation is interrupt.

This patch fix this issue just by providing the form element which is suppose to be triggered.
Limit validation errors is so applied and other SGBD required fields are ignored.

It should be nice if this patch could be back-ported for the 6.x branch too.
Note that Drupal 8 is not tested.

Thanks for the review.