Index: sharethis.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/sharethis/Attic/sharethis.module,v
retrieving revision 1.1.2.10
diff -u -r1.1.2.10 sharethis.module
--- sharethis.module	5 Jun 2009 20:40:21 -0000	1.1.2.10
+++ sharethis.module	5 Jun 2009 20:57:40 -0000
@@ -97,6 +97,29 @@
 }
 
 /**
+ * Implementation of hook_block().
+ */
+function sharethis_block($op = 'list', $delta = 0, $edit = array()) {
+  switch ($op) {
+    case 'list':
+      $blocks['sharethis'] = array(
+        'info' => t('ShareThis'),
+      );
+      return $blocks;
+    break;
+    case 'view':
+      if ($delta == 'sharethis') {
+        return array(
+          'subject' => t('ShareThis'),
+          'content' => theme('sharethis', drupal_get_title(), $_GET['q']),
+          'cache' => BLOCK_NO_CACHE, // Don't cache it because it needs to add JavaScript.
+        );
+      }
+    break;
+  }
+}
+
+/**
  * Adds all required ShareThis JavaScript to the page.
  */
 function sharethis_add_js() {
