From a141249b14f641d87a3777cdff82c9c67acaec0b Mon Sep 17 00:00:00 2001 From: Tim Steiner <tsteiner2@unl.edu> Date: Wed, 15 Sep 2010 16:57:09 +0000 Subject: [PATCH] Dirty hack to disable displaying the summary version of a page in preview. There's got to be a better way to do this. git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x@165 20a16fea-79d4-4915-8869-1ea9d5ebf173 --- modules/node/node.pages.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/node/node.pages.inc b/modules/node/node.pages.inc index c5a83078..d7244a69 100644 --- a/modules/node/node.pages.inc +++ b/modules/node/node.pages.inc @@ -373,7 +373,7 @@ function theme_node_preview($variables) { $full = drupal_render($elements); // Do we need to preview trimmed version of post as well as full version? - if ($trimmed != $full) { + if (FALSE && /* Dirty trick to disable summary view in preview */ $trimmed != $full) { drupal_set_message(t('The trimmed version of your post shows what your post looks like when promoted to the main page or when exported for syndication.<span class="no-js"> You can insert the delimiter "<!--break-->" (without the quotes) to fine-tune where your post gets split.</span>')); $output .= '<h3>' . t('Preview trimmed version') . '</h3>'; $output .= $trimmed; -- GitLab