A typo in the first entry in the #options array for 'updown_comment_display' radios means that the default option is not selected, and if the radio is selected, it doesn't have the right effect.

    $form['updown_comment']['updown_comment_display'] = array(
      '#type' => 'radios',
      '#title' => t('UpDown widget display'),
      '#default_value' => variable_get('updown_comment_display_'. $form['#node_type']->type, 'beginning'),
      '#options' => array(
        'begining' => t('Beginning'),
        'end'   => t('End'),
        'vars'   => t('Add to template vars as $updown (advanced: theme template will handle display)'),
        'none'   => t('Do not include (advanced: theme or other code will handle display)'),
      ),
      '#description' => t('Where to add the UpDown widget to the comment content'),
    );

See patch.

CommentFileSizeAuthor
updown_comment-beginning.patch657 byteslyricnz

Comments

dmitrig01’s picture

Where's updown_comment.module??

lyricnz’s picture

simonmac:x simonroberts$ curl -s http://ftp.drupal.org/files/projects/updown-6.x-1.0.tar.gz | tar xvz
updown/
updown/contrib/
updown/contrib/updown_comment.info
updown/contrib/updown_comment.install
updown/contrib/updown_comment.module
updown/updown-active.tpl.php
updown/updown-inactive.tpl.php
updown/updown.css
updown/updown.info
updown/updown.install
updown/updown.js
updown/updown.module
updown/LICENSE.txt
simonmac:x simonroberts$