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.
| Comment | File | Size | Author |
|---|---|---|---|
| updown_comment-beginning.patch | 657 bytes | lyricnz |
Comments
Comment #1
dmitrig01 commentedWhere's updown_comment.module??
Comment #2
lyricnz commented