--- twitter.module.orig	2009-07-02 16:54:18.000000000 +0200
+++ twitter.module	2009-12-20 15:03:10.062500000 +0100
@@ -84,6 +84,7 @@ function twitter_form_alter(&$form, $for
     $form['twitter'] = array(
       '#type' => 'fieldset',
       '#title' => t('Post to twitter.com'),
+      '#group' => 'additional_settings',
       '#collapsible' => TRUE,
       '#collapsed' => FALSE,
       '#tree' => TRUE,
@@ -101,6 +102,22 @@ function twitter_form_alter(&$form, $for
 }
 
 /**
+* Implementation of hook_content_extra_fields.
+*/
+function twitter_content_extra_fields($type) {
+  $allowed_types = variable_get('twitter_types', array('story' => 'story', 'blog' => 'blog'));
+  if (empty($allowed_types[$type])) {
+    return;
+  }
+  $extras['twitter'] = array(
+    'label' => t('Twitter'),
+    'description' => t('Form to send new content to twitter'),
+    'weight' => 100,
+  );
+  return $extras;
+}
+
+/**
  * Implementation of hook_nodeapi().
  *
  * Intercepts newly published nodes and posts noticed to Twitter.
