- Patch #27535 by Ber: set 'preview status message' using drupal_set_message().
parent
0a28c17cac
commit
70bc4639fa
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue