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.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/node/node.module') diff --git a/modules/node/node.module b/modules/node/node.module index e32f6eaa3..8f6031cf3 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -858,6 +858,7 @@ function node_submit($node) { // module-provided 'teaser' form item). if (!isset($node->teaser)) { if (isset($node->body)) { + $node->format = (!empty($node->body_format) ? $node->body_format : FILTER_FORMAT_DEFAULT); $node->teaser = node_teaser($node->body, isset($node->format) ? $node->format : NULL); // Chop off the teaser from the body if needed. The teaser_include // property might not be set (eg. in Blog API postings), so only act on @@ -938,7 +939,6 @@ function node_save(&$node) { $node->changed = REQUEST_TIME; $node->timestamp = REQUEST_TIME; - $node->format = isset($node->format) ? $node->format : FILTER_FORMAT_DEFAULT; $update_node = TRUE; // Generate the node table query and the node_revisions table query. -- cgit v1.2.3