--- tweetbutton.module	Wed Sep 21 12:39:29 2011
+++ tweetbutton.module	Wed Sep 21 12:24:18 2011
@@ -200,3 +200,48 @@
   }
 }
 
+/**
+ * Implementation of hook_block
+ */
+function tweetbutton_block($op = 'list', $delta = 0, $edit = array()){
+  $url = url($_GET['q'], array('absolute' => TRUE, 'alias' => $aliased ));
+  $attributes = array (
+    'text' => drupal_get_title(),
+    'url' => $url
+  );
+  switch ($op) {
+    case 'list' :
+      $blocks['tweetbutton_vertical'] = array(
+        'info' => t('Tweet Button - Vertical'), 
+      );
+      $blocks['tweetbutton_horizontal'] = array(
+        'info' => t('Tweet Button - Horizontal'), 
+      );
+      $blocks['tweetbutton_none'] = array(
+        'info' => t('Tweet Button - None'), 
+      );
+    return $blocks;
+    case 'view' :
+      switch ($delta) {
+        case 'tweetbutton_vertical' :
+          $attributes['type'] = 'vertical';
+          return array(
+            'subject' => t(''), 
+            'content' =>  theme('tweetbutton_display', NULL, $attributes)
+          );
+        case 'tweetbutton_horizontal' :
+          $attributes['type'] = 'horizontal';
+          return array(
+            'subject' => t(''), 
+            'content' =>  theme('tweetbutton_display', NULL, $attributes)
+          );
+        case 'tweetbutton_none' :
+          $attributes['type'] = 'none';
+          return array(
+            'subject' => t(''), 
+            'content' =>  theme('tweetbutton_display', NULL, $attributes)
+          );
+    }
+    break;
+  }
+}
