Typo in updown_comment node settings form
lyricnz - January 9, 2009 - 11:21
| Project: | UpDown |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
Description
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.
<?php
$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.
| Attachment | Size |
|---|---|
| updown_comment-beginning.patch | 657 bytes |

#1
Where's updown_comment.module??
#2
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$