From b46e90ad366c57095183891de56894d6a449bc14 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 14 Mar 2009 20:13:27 +0000 Subject: - Patch #322344 by merlinofchaos, Frando, catch, sun: form improvements from Views. --- modules/node/node.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/node') diff --git a/modules/node/node.module b/modules/node/node.module index 7cdcdea0c..a83cfbdc5 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -293,7 +293,7 @@ function node_mark($nid, $timestamp) { * See if the user used JS to submit a teaser. */ function node_teaser_js(&$form, &$form_state) { - if (isset($form['#post']['teaser_js'])) { + if (isset($form_state['input']['teaser_js'])) { // Glue the teaser to the body. if (trim($form_state['values']['teaser_js'])) { // Space the teaser from the body @@ -330,8 +330,8 @@ function node_teaser_js(&$form, &$form_state) { function node_teaser_include_verify(&$form, &$form_state) { $message = ''; - // $form['#post'] is set only when the form is built for preview/submit. - if (isset($form['#post']['body']) && isset($form_state['values']['teaser_include']) && !$form_state['values']['teaser_include']) { + // $form_state['input'] is set only when the form is built for preview/submit. + if (isset($form_state['input']['body']) && isset($form_state['values']['teaser_include']) && !$form_state['values']['teaser_include']) { // "teaser_include" checkbox is present and unchecked. if (strpos($form_state['values']['body'], '') === 0) { // Teaser is empty string. -- cgit v1.2.3