Excerpt editing broken in latest code.

Index: excerpt.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/excerpt/excerpt.module,v
retrieving revision 1.4
diff -u -F^f -b -r1.4 excerpt.module
--- excerpt.module 8 Mar 2005 16:11:20 -0000 1.4
+++ excerpt.module 21 Mar 2005 23:46:12 -0000
@@ -13,8 +13,7 @@ function excerpt_help($section) {
function excerpt_nodeapi(&$node, $op, $arg) {
switch ($op) {
case 'settings':
- $output[t('excerpt')] = form_checkbox(NULL, "excerpt_$node->type", 1, variable_get("excerpt_$node->type", 1));
- break;
+ return form_radios(t('Excerpt'), 'excerpt_'. $node->type, variable_get('excerpt_'. $node->type, 1), array(t('Disabled'), t('Enabled')));
case 'form post':
if (variable_get("excerpt_$node->type", 1)) {
$output = form_textarea(t('Excerpt'), 'teaser', $node->teaser, 60, 10, t('Enter an excerpt for this item. It will be shown on listing pages along with a read more link which leads to the full view. Leave empty to auto-generate one from the body.'));

CommentFileSizeAuthor
excerpt-fix-settings.patch1.09 KBsamo

Comments

Steven’s picture

Anonymous’s picture