summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-10-09 06:53:25 +0000
committerDries Buytaert <dries@buytaert.net>2006-10-09 06:53:25 +0000
commit2378379131f364fe8fdc9ee2a6d2214bf458c7dc (patch)
treedc97ea1f7a1fba35bc070dcdead2012c65fb506b
parente8ee0bcd2a8961c5eabdd1661f444cb95349ebd4 (diff)
downloadbrdo-2378379131f364fe8fdc9ee2a6d2214bf458c7dc.tar.gz
brdo-2378379131f364fe8fdc9ee2a6d2214bf458c7dc.tar.bz2
- Patch #87957 by Eaton: poll module form fixes.
-rw-r--r--modules/poll/poll.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 4a304634d..5d7a13d74 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -144,7 +144,7 @@ function poll_form($node, $form_values = NULL) {
$form['choices'] = array(
'#type' => 'hidden',
- '#default_value' => $choices,
+ '#value' => $choices,
);
// Poll choices
@@ -163,7 +163,7 @@ function poll_form($node, $form_values = NULL) {
'#type' => 'checkbox',
'#parents' => array('morechoices'),
'#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."),
'#weight' => 1,
);