/[drupal]/contributions/modules/uc_node_checkout/uc_node_checkout.module
ViewVC logotype

Diff of /contributions/modules/uc_node_checkout/uc_node_checkout.module

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

revision 1.8.2.9, Thu Jul 30 16:38:35 2009 UTC revision 1.8.2.10, Thu Jul 30 17:23:56 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: uc_node_checkout.module,v 1.8.2.8 2009/07/30 16:27:54 rszrama Exp $  // $Id: uc_node_checkout.module,v 1.8.2.9 2009/07/30 16:38:35 rszrama Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 395  function uc_node_checkout_form_alter(&$f Line 395  function uc_node_checkout_form_alter(&$f
395    
396        if (!empty($fields) && !user_access('edit any '. $type .' content')) {        if (!empty($fields) && !user_access('edit any '. $type .' content')) {
397          foreach ($fields as $field) {          foreach ($fields as $field) {
398            $form[$field]['#access'] = FALSE;            if ($field == 'preview') {
399                $form['buttons']['preview']['#access'] = FALSE;
400              }
401              else {
402                $form[$field]['#access'] = FALSE;
403              }
404          }          }
405        }        }
406    

Legend:
Removed from v.1.8.2.9  
changed lines
  Added in v.1.8.2.10

  ViewVC Help
Powered by ViewVC 1.1.2