/[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.31, Thu Jan 4 20:50:02 2007 UTC revision 1.641.2.32, Mon Jan 29 21:39:28 2007 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: node.module,v 1.641.2.30 2007/01/04 19:50:28 killes Exp $  // $Id: node.module,v 1.641.2.31 2007/01/04 20:50:02 killes Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 1724  function node_form_add_preview($form) { Line 1724  function node_form_add_preview($form) {
1724    
1725    $op = isset($_POST['op']) ? $_POST['op'] : '';    $op = isset($_POST['op']) ? $_POST['op'] : '';
1726    if ($op == t('Preview')) {    if ($op == t('Preview')) {
1727        // Invoke full validation for the form, to protect against cross site
1728        // request forgeries (CSRF) and setting arbitrary values for fields such as
1729        // the input format. Preview the node only when form validation does not
1730        // set any errors.
1731      drupal_validate_form($form['form_id']['#value'], $form);      drupal_validate_form($form['form_id']['#value'], $form);
1732      if (!form_get_errors()) {      if (!form_get_errors()) {
1733        // Because the node preview may display a form, we must render it        // Because the node preview may display a form, we must render it

Legend:
Removed from v.1.641.2.31  
changed lines
  Added in v.1.641.2.32

  ViewVC Help
Powered by ViewVC 1.1.2