Index: modules/excerpt/excerpt.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/excerpt/excerpt.module,v
retrieving revision 1.5
diff -u -r1.5 excerpt.module
--- modules/excerpt/excerpt.module	23 Apr 2005 03:37:00 -0000	1.5
+++ modules/excerpt/excerpt.module	13 Nov 2005 22:41:15 -0000
@@ -13,10 +13,28 @@
 function excerpt_nodeapi(&$node, $op, $arg) {
   switch ($op) {
     case 'settings':
-      return form_radios(t('Teasers'), "excerpt_$node->type", variable_get("excerpt_$node->type", 1), array(t('Auto-generated'), t('Manual excerpt')), t('Choose whether teasers are generated automatically or can be entered manually by the author.'));
-    case 'form post':
+      $form = array();
+      $form["excerpt_$node->type"] = array(
+        '#type' => 'radios',
+        '#title' => t('Teasers'),
+        '#default_value' => variable_get("excerpt_$node->type", 1),
+        '#options' => array(t('Auto-generated'), t('Manual excerpt')),
+        '#description' => t('Choose whether teasers are generated automatically or can be entered manually by the author.')
+      );
+      return $form;
+    case 'form':
+      $form = array();
       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 <em>read more</em> link which leads to the full view. Leave empty to auto-generate one from the body.'));
+        $form['teaser'] = array(
+          '#type' => 'textarea',
+          '#title' => t('Teaser'),
+          '#default_value' => $node->teaser,
+          '#cols' => 60,
+          '#rows' => 5,
+          '#weight' => -17.5,
+          '#description' => t('Enter an excerpt for this item. It will be shown on listing pages along with a <em>read more</em> link which leads to the full view. Leave empty to auto-generate one from the body.')
+        );
+        return $form;
       }
       break;
     case 'validate':
@@ -24,12 +42,5 @@
         $node->teaser = node_teaser($node->body);
       }
       break;
-    case 'view':
-      $node->readmore = $node->teaser !== $node->body;
-      break;
   }
-
-  return $output;
-}
-
-?>
\ No newline at end of file
+}
\ No newline at end of file
