From 4a0e68e838bd44f431747116073cec1bd5b07ba0 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 27 Sep 2008 19:47:43 +0000 Subject: =?UTF-8?q?#125315=20by=20chx,=20sun,=20G=C3=A1bor=20Hojtsy,=20dru?= =?UTF-8?q?mm,=20and=20friends:=20Add=20#input=5Fformat=20FAPI=20property?= =?UTF-8?q?=20that=20can=20be=20used=20by=20WYSIWYG=20editors.=20WOOHOO.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/node/node.pages.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/node/node.pages.inc') diff --git a/modules/node/node.pages.inc b/modules/node/node.pages.inc index 1fb688ab6..6f48a74ab 100644 --- a/modules/node/node.pages.inc +++ b/modules/node/node.pages.inc @@ -296,10 +296,9 @@ function node_body_field(&$node, $label, $word_count) { '#default_value' => $include ? $node->body : ($node->teaser . $node->body), '#rows' => 20, '#required' => ($word_count > 0), + '#input_format' => isset($node->format) ? $node->format : FILTER_FORMAT_DEFAULT, ); - $form['format'] = filter_form($node->format); - return $form; } -- cgit v1.2.3