Skip to content
Snippets Groups Projects
Commit 1890b694 authored by Adam G-H's avatar Adam G-H Committed by Adam G-H
Browse files

Issue #3494845 by phenaproxima, pameeela: Make the installer's database...

Issue #3494845 by phenaproxima, pameeela: Make the installer's database configuration form less intimidating
parent 66002e7f
No related branches found
No related tags found
No related merge requests found
......@@ -122,11 +122,19 @@ function drupal_cms_installer_form_install_settings_form_alter(array &$form): vo
// configuration.
if (extension_loaded('pdo_sqlite') && array_key_exists(SQLITE_DRIVER, $form['driver']['#options'])) {
$form['driver']['#default_value'] = SQLITE_DRIVER;
$form['driver']['#type'] = 'select';
// The database file path has a sensible default value, so move it into the
// advanced options.
$form['settings'][SQLITE_DRIVER]['advanced_options']['database'] = $form['settings'][SQLITE_DRIVER]['database'];
unset($form['settings'][SQLITE_DRIVER]['database']);
$form['help'] = [
'#prefix' => '<p class="cms-installer__subhead">',
'#markup' => t("You don't need to change anything here unless you want to use a different database type."),
'#suffix' => '</p>',
'#weight' => -50,
];
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment