Skip to content
Snippets Groups Projects
Commit 18828bde authored by catch's avatar catch
Browse files

Issue #2160581 by vijaycs85, Wim Leers: Remove drupal_add_js() +...

Issue #2160581 by vijaycs85, Wim Leers: Remove drupal_add_js() + drupal_add_library() from install.core.inc.
parent fe2e11a2
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -2103,12 +2103,13 @@ function install_configure_form($form, &$form_state, &$install_state) {
drupal_set_message(t('All necessary changes to %dir and %file have been made, so you should remove write permissions to them now in order to avoid security risks. If you are unsure how to do so, consult the <a href="@handbook_url">online handbook</a>.', array('%dir' => $settings_dir, '%file' => $settings_file, '@handbook_url' => 'http://drupal.org/server-permissions')), 'warning');
}
drupal_add_library('system', 'drupal.system');
$form['#attached']['library'][] = array('system', 'drupal.system');
// Add JavaScript time zone detection.
drupal_add_library('system', 'drupal.timezone');
$form['#attached']['library'][] = array('system', 'drupal.timezone');
// We add these strings as settings because JavaScript translation does not
// work during installation.
drupal_add_js(array('copyFieldValue' => array('edit-site-mail' => array('edit-account-mail'))), 'setting');
$js = array('copyFieldValue' => array('edit-site-mail' => array('edit-account-mail')));
$form['#attached']['js'][] = array('data' => $js, 'type' => 'setting');
// Cache a fully-built schema. This is necessary for any invocation of
// index.php because: (1) setting cache table entries requires schema
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment