Index: excerpt.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/excerpt/excerpt.module,v
retrieving revision 1.5
diff -u -r1.5 excerpt.module
--- excerpt.module	23 Apr 2005 03:37:00 -0000	1.5
+++ excerpt.module	25 Oct 2005 12:16:55 -0000
@@ -13,10 +13,18 @@
 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['excerpt_'.$node->type] = array(
+        '#type' => 'radios', '#title' => t('Teasers'), '#default_value' => variable_get('upload_'. $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':
       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', '#rows' => 10, '#title' => t('Excerpt'), '#default_value' => $node->teaser, '#weight' => 0,
+          '#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':
