Index: quotes.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/quotes/quotes.module,v
retrieving revision 1.15.2.3
diff -u -r1.15.2.3 quotes.module
--- quotes.module	6 Jul 2006 14:30:25 -0000	1.15.2.3
+++ quotes.module	19 Dec 2006 16:26:27 -0000
@@ -62,12 +62,14 @@
       'callback' => '_quotes_feed_last',
       'type' => MENU_CALLBACK
     );
-    $items[] = array(
-      'path' => "quotes/$user->uid",
-      'title' => t('my quotes'),
-      'access' => ($user->uid && (user_access('create quotes') || user_access('import quotes') || user_access('edit own quotes'))),
-      'type' => MENU_DYNAMIC_ITEM
-    );
+    if (variable_get('quotes_show_myquotes', 1)) {
+      $items[] = array(
+        'path' => "quotes/$user->uid",
+        'title' => t('my quotes'),
+        'access' => ($user->uid && (user_access('create quotes') || user_access('import quotes') || user_access('edit own quotes'))),
+        'type' => MENU_DYNAMIC_ITEM
+      );
+    }
     $items[] = array(
       'path' => 'admin/settings/quotes',
       'title' => t('quotes'),
@@ -355,6 +357,10 @@
 function quotes_link($type, $node = NULL, $teaser = FALSE) {
   $links = array();
 
+  if(variable_get('quotes_showlink', TRUE) == FALSE){
+  	return $links;
+  }
+
   if (($type == 'node') && ($node->type == 'quotes') && !((arg(0) == 'quotes') && (arg(1) == $node->uid))) {
     $links[] = l(t("%name's quotes", array('%name' => ($node->uid ? $node->name : variable_get('anonymous', t('Anonymous'))))), "quotes/$node->uid", array('title' => t("View %name's quotes.", array('%name' => $node->name))));
   }
@@ -385,6 +391,24 @@
     '#default_value' => variable_get('quotes_leader', '&mdash;'),
     '#description' => t('The text placed before the author attribution (i.e. "&amp;mdash;" for an em-dash or "&amp;#8226;" for a bullet).')
   );
+  $form['myquotes'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('My Quotes links'),
+    '#collapsible' => TRUE,
+    '#collapsed' => FALSE,
+  );
+  $form['myquotes']['quotes_showlink'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Show link to users\' quotes'),
+    '#default_value' => variable_get('quotes_showlink', TRUE),
+    '#description' => t('Uncheck this to disable the link to each users\' "my quotes" page when viewing a node.')
+  );
+  $form['myquotes']['quotes_show_myquotes'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Show the "my quotes" menu item'),
+    '#default_value' => variable_get('quotes_show_myquotes', 1),
+    '#description' => t('Uncheck this to disable the "my quotes" menu item for all users.')
+  );
 
   return $form;
 }
