Skip to content
Snippets Groups Projects
Commit 371fd516 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2099577 follow-up by nod: Optimize method of installer's conditional language selector text.

parent aeecb0a4
Branches
Tags
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
......@@ -1643,17 +1643,15 @@ function install_select_language_form($form, &$form_state, $files = array()) {
if (empty($files)) {
$form['help'] = array(
'#type' => 'container',
'#type' => 'item',
'#markup' => '<p>Translations will be downloaded from the <a href="http://localize.drupal.org">Drupal Translation website</a>. ' .
'If you do not want this, select <em>English</em>.</p>',
'#states' => array(
'invisible' => array(
'select[name="langcode"]' => array('value' => 'en'),
),
),
);
$form['help']['text'] = array(
'#markup' => '<p>Translations will be downloaded from the <a href="http://localize.drupal.org">Drupal Translation website</a>. ' .
'If you do not want this, select <em>English</em>.</p>',
);
}
$form['actions'] = array('#type' => 'actions');
$form['actions']['submit'] = array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment