Index: lastfmsimple.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/lastfmsimple/Attic/lastfmsimple.admin.inc,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 lastfmsimple.admin.inc
--- lastfmsimple.admin.inc	3 Dec 2008 23:07:23 -0000	1.1.2.1
+++ lastfmsimple.admin.inc	5 Apr 2009 17:27:44 -0000
@@ -95,6 +95,18 @@
       LASTFMSIMPLE_BLOCK_STAT_TYPE_RECENTTRACKS => t('Recent tracks'),
     ),
   );
+  
+  $form['lastfmsimple_block']['lastfmsimple_statline_display'] = array(
+    '#type' => 'radios',
+      '#title' => t('Display of stats'),
+      '#description' => t('Choose the display type of the lines of statistics.'),
+      '#options' => array(
+	LASTFMSIMPLE_STATLINE_LINK => t('Link to Last.fm'),
+	LASTFMSIMPLE_STATLINE_TEXT => t('Plain text'),
+	),
+      '#default_value' => variable_get('lastfmsimple_statline_display', LASTFMSIMPLE_STATLINE_DEFAULT),
+      '#required' => TRUE,
+	);
 
   return system_settings_form($form);
 }
Index: lastfmsimple.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/lastfmsimple/lastfmsimple.module,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 lastfmsimple.module
--- lastfmsimple.module	3 Dec 2008 23:05:01 -0000	1.1.2.2
+++ lastfmsimple.module	5 Apr 2009 17:41:28 -0000
@@ -20,6 +20,9 @@
 define('LASTFMSIMPLE_UPDATE_CRON', 0);
 define('LASTFMSIMPLE_UPDATE_REQUEST', 1);
 define('LASTFMSIMPLE_UPDATE_DEFAULT', LASTFMSIMPLE_UPDATE_REQUEST);
+define('LASTFMSIMPLE_STATLINE_LINK', 0);
+define('LASTFMSIMPLE_STATLINE_TEXT', 1);
+define('LASTFMSIMPLE_STATLINE_DEFAULT', LASTFMSIMPLE_STATLINE_LINK);
 define('LASTFMSIMPLE_BLOCK_STAT_TYPE_WEEKLYARTISTCHART', "weeklyartistchart");
 define('LASTFMSIMPLE_BLOCK_STAT_TYPE_RECENTTRACKS', "recenttracks");
 
@@ -230,9 +233,14 @@
  */
 function _lastfmsimple_show_recenttracks($content) {
 	// setting up the block
+	$statline = variable_get('lastfmsimple_statline_display', LASTFMSIMPLE_STATLINE_DEFAULT);
 	$block_content = '<ol>';
 	foreach ( $content as $item ):
-	$block_content .= '<li><a href="'. $item->url . '">' . $item->artist . ' - ' . $item->name . '</a></li>';
+	if ($statline == LASTFMSIMPLE_STATLINE_LINK) {
+		$block_content .= '<li><a href="'. $item->url . '">' . $item->artist . ' - ' . $item->name . '</a></li>';
+	} else {
+		$block_content .= '<li>' . $item->artist . ' - ' . $item->name . '</li>';
+	}
 	endforeach;
 	$block_content .= '</ol>';
 	
@@ -249,9 +257,14 @@
  */
 function _lastfmsimple_show_weeklyartistchart($content) {
 	// setting up the block
+	$statline = variable_get('lastfmsimple_statline_display', LASTFMSIMPLE_STATLINE_DEFAULT);
 	$block_content = '<ol>';
 	foreach ( $content as $item ):
-	$block_content .= '<li><a href="'. $item->url . '">' . $item->name . '</a> (' . $item->playcount . ')</li>';
+	if ($statline == LASTFMSIMPLE_STATLINE_LINK) {
+		$block_content .= '<li><a href="'. $item->url . '">' . $item->name . '</a> (' . $item->playcount . ')</li>';
+	} else {
+		$block_content .= '<li>' . $item->name . ' (' . $item->playcount . ')</li>';
+	}
 	endforeach;
 	$block_content .= '</ol>';
 	

