--- fivestar.orig	2007-07-04 15:56:58.000000000 -0500
+++ fivestar.module	2007-07-06 22:47:36.000000000 -0500
@@ -431,6 +431,31 @@ function fivestar_nodeapi(&$node, $op, $
   }
 }
 
+function fivestar_block($op = 'list', $delta = 0, $edit = array()) {
+  global $user;
+  switch ($op) {
+    case 'list':
+      $blocks[0]['info'] = t('Fivestar: Rate This');
+      return $blocks;
+
+    case 'view':
+      if (user_access('access content') && user_access('rate content')) {
+        if (arg(0) == 'node' && is_numeric(arg(1)) && (arg(2) == '' || arg(2) == 'view')) {
+          $node = node_load(arg(1));
+          
+          if (_fivestar_validate_target('node', $node->nid)) {
+			  $block['subject'] = t('Rate This');
+			  $block['content'] = fivestar_widget_form($node);
+          }
+          
+          return $block;
+        }
+      }
+      
+      break;
+  }
+}
+
 function fivestar_widget_form($node) {
   return drupal_get_form('fivestar_form_node_' . $node->nid, 'node', $node->nid, variable_get('fivestar_style_'. $node->type, 'default'));
 }
