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

Issue #1078618 by Sutharsan, Takafumi: Add string context to Scale.

parent 430481ff
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
...@@ -46,7 +46,7 @@ public function settingsForm(array $form, array &$form_state) { ...@@ -46,7 +46,7 @@ public function settingsForm(array $form, array &$form_state) {
); );
$elements['scale'] = array( $elements['scale'] = array(
'#type' => 'select', '#type' => 'select',
'#title' => t('Scale'), '#title' => t('Scale', array(), array('decimal places')),
'#options' => drupal_map_assoc(range(0, 10)), '#options' => drupal_map_assoc(range(0, 10)),
'#default_value' => $this->getSetting('scale'), '#default_value' => $this->getSetting('scale'),
'#description' => t('The number of digits to the right of the decimal.'), '#description' => t('The number of digits to the right of the decimal.'),
......
...@@ -78,7 +78,7 @@ public function settingsForm(array $form, array &$form_state, $has_data) { ...@@ -78,7 +78,7 @@ public function settingsForm(array $form, array &$form_state, $has_data) {
); );
$element['scale'] = array( $element['scale'] = array(
'#type' => 'select', '#type' => 'select',
'#title' => t('Scale'), '#title' => t('Scale', array(), array('decimal places')),
'#options' => MapArray::copyValuesToKeys(range(0, 10)), '#options' => MapArray::copyValuesToKeys(range(0, 10)),
'#default_value' => $settings['scale'], '#default_value' => $settings['scale'],
'#description' => t('The number of digits to the right of the decimal.'), '#description' => t('The number of digits to the right of the decimal.'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment