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

Diff of /contributions/modules/procon/procon.module

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

revision 1.1.2.6, Thu Sep 27 06:06:51 2007 UTC revision 1.1.2.7, Sun Oct 14 08:06:16 2007 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: procon.module,v 1.1.2.5 2007/08/11 20:34:56 fajerstarter Exp $  // $Id: procon.module,v 1.1.2.6 2007/09/27 06:06:51 fajerstarter Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 150  function procon_form_alter($form_id, &$f Line 150  function procon_form_alter($form_id, &$f
150            '#default_value' => isset($form['#node']->procon_is_enabled) ? $form['#node']->procon_is_enabled : variable_get('procon_enabled_'. $type, 0),            '#default_value' => isset($form['#node']->procon_is_enabled) ? $form['#node']->procon_is_enabled : variable_get('procon_enabled_'. $type, 0),
151          );          );
152        }        }
153          else {
154            // Just pass the values for users without the 'administer comments' permission.
155            $form['comment_settings']['procon_is_enabled'] = array(
156              '#type' => 'value',
157              '#default_value' => isset($form['#node']->procon_is_enabled) ? $form['#node']->procon_is_enabled : variable_get('procon_enabled_'. $type, 0),
158            );
159          }
160    
161        // Argument node form        // Argument node form
162        if ($type == 'procon_argument') {        if ($type == 'procon_argument') {
163          $node = $form['#node'];          $node = $form['#node'];

Legend:
Removed from v.1.1.2.6  
changed lines
  Added in v.1.1.2.7

  ViewVC Help
Powered by ViewVC 1.1.2