RSS

(root)/drupal/7-fic : 513 : modules/node/node.pages.inc

« back to all changes in this revision

Viewing changes to modules/node/node.pages.inc

David Strauss
2009-01-27 20:17:23
Revision ID: straussd@straussd-ubuntu-20090127201723-842ecd03o8iitkm6
Merge in CVS HEAD.

Show diffs side-by-side

added added

removed removed

1
1
<?php
2
 
// $Id: node.pages.inc,v 1.50 2009/01/22 12:04:27 dries Exp $
 
2
// $Id: node.pages.inc,v 1.51 2009/01/27 00:22:26 dries Exp $
3
3
 
4
4
/**
5
5
 * @file
418
418
  if ($preview_trimmed_version) {
419
419
    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 "&lt;!--break--&gt;" (without the quotes) to fine-tune where your post gets split.</span>'));
420
420
    $output .= '<h3>' . t('Preview trimmed version') . '</h3>';
421
 
    $output .= node_view(clone $node, 1, FALSE);
 
421
    $output .= drupal_render(node_build(clone $node, TRUE));
422
422
    $output .= '<h3>' . t('Preview full version') . '</h3>';
423
 
    $output .= node_view($node, 0, FALSE);
 
423
    $output .= drupal_render(node_build($node, FALSE));
424
424
  }
425
425
  else {
426
 
    $output .= node_view($node, 0, FALSE);
 
426
    $output .= drupal_render(node_build($node, FALSE));
427
427
  }
428
428
  $output .= "</div>\n";
429
429
 

Loggerhead 1.17 is a web-based interface for Bazaar branches