--- searchcloud.module	Wed Dec 03 12:28:33 2008
+++ searchcloud.module	Wed Dec 03 15:33:14 2008
@@ -112,7 +112,7 @@
  */
 function searchcloud_search($op = 'search', $keys = NULL) {
 	//drupal_set_message('searchcloud_search');
-	$args = func_get_args();
+	//$args = func_get_args();
 	//drupal_set_message('args = <pre>'. print_r($args, true) .'</pre>');
 	
   if (module_exists("search")) {
@@ -190,15 +190,30 @@
 					$tag_cloud->options['dark_colors'] = variable_get('searchcloud_dark_colors', "#0000FF,#FF0000,#00008B,#A52A2A,#FF00FF,#008000,#C71585,#8B4513,#008080,#2F4F4F");
 					$tag_cloud->options['ignored_words'] = variable_get('searchcloud_ignored_words', "?,of,the,is,off,you,them,then,at,with,i,it,We,we");
 					$tag_cloud->options['ignored_chars'] = variable_get('searchcloud_ignored_chars', "?,!,.,~,@,#,$,%,^,&,*,(,),-,_,+,=,<,>,/,[,],{,},:,;,~,`");
+					
 					// load the terms:
 					$tag_cloud->loadTerms($a_terms);
+					
 					$block['subject'] = t('Search Cloud');
-					//$block['content'] = "<pre>".print_r($aTerms, true)."</pre>";
-					$block['content'] = $tag_cloud->getCloud();
+					
+					$block['content'] = theme('searchcloud_box',$tag_cloud->getCloud());
+										
 					return $block;
 				}
 			}
 			break;
 		}
 	}
+}
+
+function searchcloud_theme() {
+  return array(
+    'searchcloud_box' => array(
+        'arguments' => array('getCloud')
+    ),
+   );
+}
+
+function theme_searchcloud_box($getCloud) {
+	return $getCloud;
 }
