/[drupal]/drupal/modules/node.module
ViewVC logotype

Diff of /drupal/modules/node.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.641.2.25, Sat Dec 16 13:22:12 2006 UTC revision 1.641.2.26, Thu Dec 21 19:22:58 2006 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: node.module,v 1.641.2.24 2006/12/12 12:48:57 killes Exp $  // $Id: node.module,v 1.641.2.25 2006/12/16 13:22:12 killes Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 1714  function node_form_add_preview($form) { Line 1714  function node_form_add_preview($form) {
1714      drupal_validate_form($form['form_id']['#value'], $form);      drupal_validate_form($form['form_id']['#value'], $form);
1715      if (!form_get_errors()) {      if (!form_get_errors()) {
1716        // We pass the global $form_values here to preserve changes made during form validation        // We pass the global $form_values here to preserve changes made during form validation
1717        $form['node_preview'] = array('#value' => node_preview((object)$form_values), '#weight' => -100);        $form['#prefix'] = node_preview((object)$form_values);
1718      }      }
1719    }    }
1720    if (variable_get('node_preview', 0) && (form_get_errors() || $op != t('Preview'))) {    if (variable_get('node_preview', 0) && (form_get_errors() || $op != t('Preview'))) {
# Line 1725  function node_form_add_preview($form) { Line 1725  function node_form_add_preview($form) {
1725    
1726  function theme_node_form($form) {  function theme_node_form($form) {
1727    $output = "\n<div class=\"node-form\">\n";    $output = "\n<div class=\"node-form\">\n";
   if (isset($form['node_preview'])) {  
     $output .= form_render($form['node_preview']);  
   }  
1728    
1729    // Admin form fields and submit buttons must be rendered first, because    // Admin form fields and submit buttons must be rendered first, because
1730    // they need to go to the bottom of the form, and so should not be part of    // they need to go to the bottom of the form, and so should not be part of

Legend:
Removed from v.1.641.2.25  
changed lines
  Added in v.1.641.2.26

  ViewVC Help
Powered by ViewVC 1.1.2