summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-04-02 23:14:51 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-04-02 23:14:51 +0000
commit352fb57d6cd6ced74f78a87c8e40a2d548b15927 (patch)
tree5ff6f7728a1eea957d915bf1682f783984f6cecc /modules
parent1a7a63b0fac6511c89d4b4c1dd058cbb01ac1314 (diff)
downloadbrdo-352fb57d6cd6ced74f78a87c8e40a2d548b15927.tar.gz
brdo-352fb57d6cd6ced74f78a87c8e40a2d548b15927.tar.bz2
#56921 by chx, removing the $form = from $form = form_builder($form_id, $form) then it works.
Diffstat (limited to 'modules')
-rw-r--r--modules/poll.module2
-rw-r--r--modules/poll/poll.module2
-rw-r--r--modules/upload.module2
-rw-r--r--modules/upload/upload.module2
4 files changed, 4 insertions, 4 deletions
diff --git a/modules/poll.module b/modules/poll.module
index 1087f742f..7c16ee352 100644
--- a/modules/poll.module
+++ b/modules/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['choice'] = form_builder('poll_node_form', $form['choice']);
+ form_builder('poll_node_form', $form['choice']);
if ($form['choice']['morechoices']['#value']) {
$form['choice']['morechoices']['#value'] = 0;
$form['choice']['choices']['#value'] *= 2;
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 1087f742f..7c16ee352 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['choice'] = form_builder('poll_node_form', $form['choice']);
+ form_builder('poll_node_form', $form['choice']);
if ($form['choice']['morechoices']['#value']) {
$form['choice']['morechoices']['#value'] = 0;
$form['choice']['choices']['#value'] *= 2;
diff --git a/modules/upload.module b/modules/upload.module
index 46d582400..50b249ede 100644
--- a/modules/upload.module
+++ b/modules/upload.module
@@ -640,7 +640,7 @@ function upload_js() {
_upload_validate($node);
$form = _upload_form($node);
- $form = form_builder('upload_js', $form);
+ form_builder('upload_js', $form);
$output = theme('status_messages') . form_render($form);
// We send the updated file attachments form.
diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index 46d582400..50b249ede 100644
--- a/modules/upload/upload.module
+++ b/modules/upload/upload.module
@@ -640,7 +640,7 @@ function upload_js() {
_upload_validate($node);
$form = _upload_form($node);
- $form = form_builder('upload_js', $form);
+ form_builder('upload_js', $form);
$output = theme('status_messages') . form_render($form);
// We send the updated file attachments form.