diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-07-31 10:28:50 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-07-31 10:28:50 +0000 |
commit | 70bc4639fa592a30505ce6294d9a0c7f4cb72c17 (patch) | |
tree | c293a045d925ebd3d47cf1bab2b648c22ddca9a7 /modules/node/node.module | |
parent | 0a28c17cac66dcb2445fe0f5c7843762f724c97a (diff) | |
download | brdo-70bc4639fa592a30505ce6294d9a0c7f4cb72c17.tar.gz brdo-70bc4639fa592a30505ce6294d9a0c7f4cb72c17.tar.bz2 |
- Patch #27535 by Ber: set 'preview status message' using drupal_set_message().
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index bf660be31..008bb5a29 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1501,9 +1501,9 @@ function node_preview($node) { function theme_node_preview($node) { $output = '<div class="preview">'; if ($node->teaser && $node->teaser != $node->body) { + 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. You can insert the delimiter "<!--break-->" (without the quotes) to fine-tune where your post gets split.')); $output .= '<h3>'. t('Preview trimmed version') .'</h3>'; $output .= node_view($node, 1, FALSE, 0); - $output .= '<p><em>'. t('The trimmed version of your post shows what your post looks like when promoted to the main page or when exported for syndication. You can insert the delimiter "<!--break-->" (without the quotes) to fine-tune where your post gets split.') .'</em></p>'; $output .= '<h3>'. t('Preview full version') .'</h3>'; $output .= node_view($node, 0, FALSE, 0); } |