diff options
author | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-04-06 15:30:19 +0000 |
---|---|---|
committer | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-04-06 15:30:19 +0000 |
commit | c3cb1ea435b34ab1ef6b074774528a5226b5e884 (patch) | |
tree | 3b570f0f1d5c0a045d8e593494fc7f2026a327fd /modules/poll | |
parent | cfe001af7a26926f02672275dcd516841fc1b985 (diff) | |
download | brdo-c3cb1ea435b34ab1ef6b074774528a5226b5e884.tar.gz brdo-c3cb1ea435b34ab1ef6b074774528a5226b5e884.tar.bz2 |
#56921, revert earlier patches, patch by chx
Diffstat (limited to 'modules/poll')
-rw-r--r-- | modules/poll/poll.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module index 7c16ee352..1087f742f 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -133,7 +133,7 @@ function poll_form(&$node) { $form['choice']['choices'] = array('#type' => 'hidden', '#default_value' => max(2, count($node->choice) ? count($node->choice) : 5)); $form['choice']['morechoices'] = array('#type' => 'checkbox', '#title' => t('Need more choices'), '#default_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); - form_builder('poll_node_form', $form['choice']); + $form['choice'] = form_builder('poll_node_form', $form['choice']); if ($form['choice']['morechoices']['#value']) { $form['choice']['morechoices']['#value'] = 0; $form['choice']['choices']['#value'] *= 2; |