--- subscriptions_orig.module	2007-04-18 16:40:44.000000000 +0200
+++ subscriptions_new.module	2007-10-12 12:18:36.000000000 +0200
@@ -227,6 +227,12 @@ function subscriptions_settings() {
     '#default_value' => variable_get('subscriptions_link_teaser', 1),
     '#description'   => t('Uncheck to show link only in node view.'),
   );
+  $form['sub_settings']['subscriptions_rss_enable'] = array(
+		'#type'          => 'checkbox',
+		'#title'         => t('Enable RSS feed for subscribed content'),
+		'#default_value' => variable_get('subscriptions_rss_enable', 1),
+		'#description'   => t('Show RSS feed tab for subscribed content. Default is ON.'),
+	);  
 
   return system_settings_form($form);
 }
@@ -375,15 +381,17 @@ function subscriptions_menu($may_cache) 
     }
 
     // RSS feed of subscriptions
-    $items[] = array(
-      'path' => "subscriptions/feed",
-      'title' => t('rss feed'),
-      'access' => user_access('subscribe to content'),
-      'callback' => 'subscriptions_feed',
-      'type' => MENU_LOCAL_TASK,
-      'weight' => 1,
-      'callback arguments' => array($user->uid, "feed"),
-    );
+    if(variable_get('subscriptions_rss_enable')==1){
+	    $items[] = array(
+	      'path' => "subscriptions/feed",
+	      'title' => t('rss feed'),
+	      'access' => user_access('subscribe to content'),
+	      'callback' => 'subscriptions_feed',
+	      'type' => MENU_LOCAL_TASK,
+	      'weight' => 1,
+	      'callback arguments' => array($user->uid, "feed"),
+	    );
+    }
   }
 
   /* hiding reporting stub until there is content behind it
@@ -1472,13 +1480,15 @@ function subscriptions_page($uid, $displ
       }
 
       $message .= theme('box', '', $output);
-      $message .= theme('xml_icon', url("subscriptions/feed"));
-      drupal_add_link(array(
-        'rel' => 'alternate',
-        'type' => 'application/rss+xml',
-        'title' => t("!name Subscriptions", array('!name' => $user->name)),
-        'href' => url('subscriptions/feed'),
-      ));
+      if ( variable_get('subscriptions_rss_enable', 1) ){
+	      $message .= theme('xml_icon', url("subscriptions/feed"));
+	      drupal_add_link(array(
+	        'rel' => 'alternate',
+	        'type' => 'application/rss+xml',
+	        'title' => t("!name Subscriptions", array('!name' => $user->name)),
+	        'href' => url('subscriptions/feed'),
+	      ));
+  		}
       return $message;
   }
 }
