$message=t('You specified that the summary should not be shown when this post is displayed in full view. This setting is ignored when the summary is empty.');
$message=t('You specified that the summary should not be shown when this post is displayed in full view. This setting has been ignored since you have not defined a summary for the post. (To define a summary, insert the delimiter "<!--break-->" (without the quotes) in the Body of the post to indicate the end of the summary and the start of the main content.)');
}
if(!empty($message)){
drupal_set_message($message,'warning');
// Pass new checkbox value on to preview/submit form processing.
@@ -414,7 +414,7 @@ function node_preview($node) {
*/
functiontheme_node_preview($node){
$output='<div class="preview">';
$preview_trimmed_version=FALSE;
// Do we need to preview trimmed version of post as well as full version?
if(isset($node->teaser)&&isset($node->body)){
...
...
@@ -428,7 +428,7 @@ function theme_node_preview($node) {
$preview_trimmed_version=TRUE;
}
}
if($preview_trimmed_version){
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>'));