Index: component.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/component/component.module,v
retrieving revision 1.1.4.1
diff -u -r1.1.4.1 component.module
--- component.module	2 Dec 2008 04:32:17 -0000	1.1.4.1
+++ component.module	4 Feb 2009 00:49:20 -0000
@@ -55,14 +55,20 @@
  *  The delta of the block we want
  * @param string $title_text
  *  The text to use in place of the default title, if any
+ * @param $region
+ *   A optional template region to simulate the rendering of the block
+ *   in that region, useful to use the region based template suggestions. 
  */
-function component_get_block($module, $delta, $title_text = NULL) {
+function component_get_block($module, $delta, $title_text = NULL, $region = NULL) {
   $block = (object) module_invoke($module, 'block', 'view', $delta);
   $block->module = $module;
   $block->delta = $delta;
   if (isset($title_text)) {
     $block->subject = check_plain($title_text);
   }
+  if (isset($region)) {
+    $block->region = $region;  
+  }
 
   $output = theme('block', $block);
   return $output;
