summaryrefslogtreecommitdiff
path: root/modules/forum
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-06-12 08:39:40 +0000
committerDries Buytaert <dries@buytaert.net>2009-06-12 08:39:40 +0000
commit3d64cb5ecae7c0d093e1343f87901769dc7d819e (patch)
tree765b3104ae2bbdf96ac677f8deab9b5457ffa4bf /modules/forum
parentbfdea95337376b00e60049b640c076e8ab32293f (diff)
downloadbrdo-3d64cb5ecae7c0d093e1343f87901769dc7d819e.tar.gz
brdo-3d64cb5ecae7c0d093e1343f87901769dc7d819e.tar.bz2
- Patch #372743 by bjaspan, yched, KarenS, catch et al: node body and teasers as fields. Oh, my.
Diffstat (limited to 'modules/forum')
-rw-r--r--modules/forum/forum.module2
-rw-r--r--modules/forum/forum.test4
2 files changed, 2 insertions, 4 deletions
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index eac3c58c8..8579ca519 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -549,8 +549,6 @@ function forum_form($node, $form_state) {
$form['shadow'] = array('#type' => 'checkbox', '#title' => t('Leave shadow copy'), '#default_value' => $shadow, '#description' => t('If you move this topic, you can leave a link in the old forum to the new forum.'));
}
- $form['body_field'] = node_body_field($node, $type->body_label, 1);
-
$form['#submit'][] = 'forum_submit';
// Assign the forum topic submit handler.
diff --git a/modules/forum/forum.test b/modules/forum/forum.test
index 4941734bf..0b2978800 100644
--- a/modules/forum/forum.test
+++ b/modules/forum/forum.test
@@ -233,7 +233,7 @@ class ForumTestCase extends DrupalWebTestCase {
$edit = array(
'title' => $title,
- 'body' => $body,
+ 'body[0][value]' => $body,
'taxonomy[1]' => $tid
);
@@ -322,7 +322,7 @@ class ForumTestCase extends DrupalWebTestCase {
// Edit forum node (including moving it to another forum).
$edit = array();
$edit['title'] = 'node/' . $node->nid;
- $edit['body'] = $this->randomName(256);
+ $edit['body[0][value]'] = $this->randomName(256);
$edit['taxonomy[1]'] = $this->root_forum['tid']; // Assumes the topic is initially associated with $forum.
$edit['shadow'] = TRUE;
$this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save'));