Index: amazon_filter/amazon_filter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/amazon_filter/amazon_filter.module,v
retrieving revision 1.5
diff -u -r1.5 amazon_filter.module
--- amazon_filter/amazon_filter.module	14 Feb 2007 05:30:56 -0000	1.5
+++ amazon_filter/amazon_filter.module	9 Feb 2008 04:15:11 -0000
@@ -9,7 +9,7 @@
  * Implementation of hook_filter_tips().
  */
 function amazon_filter_filter_tips($delta, $format, $long = FALSE) {
-  return t('Syntax: [amazon title|cover|info asin] Example: [amazon cover B0007M123K]'
+  return t('Syntax: [amazon <type> asin], where type is one of title, cover, info, and block.  Example: [amazon cover B0007M123K]');
 }
 
 /**
@@ -72,6 +72,12 @@
       }
       $output .= '</div>';
       break;
+    case 'block':
+      $associd = variable_get('amazon_associate_id', '');
+      $output = '<iframe src="http://rcm.amazon.com/e/cm?t=' . $associd . '&o=1&p=8&l=as1&asins=' . $product->asin . '&fc1=000000&IS2=1&lt1=_blank&lc1=cf0000&bc1=000000&bg1=ffffff&f=ifr"
+                        style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>';
+      break;
+
   }
   return $output;
-}
\ No newline at end of file
+}
