Skip to content
Snippets Groups Projects
Commit 23783791 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #87957 by Eaton: poll module form fixes.

parent e8ee0bcd
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
...@@ -144,7 +144,7 @@ function poll_form($node, $form_values = NULL) { ...@@ -144,7 +144,7 @@ function poll_form($node, $form_values = NULL) {
$form['choices'] = array( $form['choices'] = array(
'#type' => 'hidden', '#type' => 'hidden',
'#default_value' => $choices, '#value' => $choices,
); );
// Poll choices // Poll choices
...@@ -163,7 +163,7 @@ function poll_form($node, $form_values = NULL) { ...@@ -163,7 +163,7 @@ function poll_form($node, $form_values = NULL) {
'#type' => 'checkbox', '#type' => 'checkbox',
'#parents' => array('morechoices'), '#parents' => array('morechoices'),
'#title' => t('Need more choices'), '#title' => t('Need more choices'),
'#default_value' => 0, '#value' => 0,
'#description' => t("If the amount of boxes above isn't enough, check this box and click the Preview button below to add some more."), '#description' => t("If the amount of boxes above isn't enough, check this box and click the Preview button below to add some more."),
'#weight' => 1, '#weight' => 1,
); );
......
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