Index: lastfmsimple.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/lastfmsimple/lastfmsimple.module,v
retrieving revision 1.2
diff -u -r1.2 lastfmsimple.module
--- lastfmsimple.module	5 Apr 2009 20:51:40 -0000	1.2
+++ lastfmsimple.module	5 Apr 2009 20:53:59 -0000
@@ -204,6 +204,20 @@
 	}
 }
 
+/*
+ * Implementation of hook_theme().
+ */
+function lastfmsimple_theme() {
+	return array(
+    'lastfmsimple_show_recenttracks' => array(
+      'arguments' => array('content' => NULL),
+    ),
+    'lastfmsimple_show_weeklyartistchart' => array(
+      'arguments' => array('content' => NULL),
+    ),
+  ); 
+}
+
 /**
  * Create block content based on statistic type.
  *
@@ -217,9 +231,9 @@
 function _lastfmsimple_create_content($content, $type) {
 	switch ($type) {
 		case 'recenttracks':
-			return _lastfmsimple_show_recenttracks($content);
+			return theme('lastfmsimple_show_recenttracks',$content);
 		case 'weeklyartistchart':
-			return _lastfmsimple_show_weeklyartistchart($content);
+			return theme('lastfmsimple_show_weeklyartistchart',$content);
 	}
 }
 
@@ -231,7 +245,7 @@
  * @return unknown
  * Returns the formatted block content.
  */
-function _lastfmsimple_show_recenttracks($content) {
+function theme_lastfmsimple_show_recenttracks($content) {
 	// setting up the block
 	$statline = variable_get('lastfmsimple_statline_display', LASTFMSIMPLE_STATLINE_DEFAULT);
 	$block_content = '<ol>';
@@ -255,7 +269,7 @@
  * @return unknown
  * Returns the formatted block content.
  */
-function _lastfmsimple_show_weeklyartistchart($content) {
+function theme_lastfmsimple_show_weeklyartistchart($content) {
 	// setting up the block
 	$statline = variable_get('lastfmsimple_statline_display', LASTFMSIMPLE_STATLINE_DEFAULT);
 	$block_content = '<ol>';

