Disable "my quotes" in menu and on user account page
solipsist - May 15, 2006 - 14:36
| Project: | Quotes |
| Version: | 5.x-1.x-dev |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | NancyDru |
| Status: | closed |
Description
You currently cannot disable the "my quotes" entry in the menu. You should be able to.

#1
Drupal's menu system does not currently allow administratively-controlled dynamic menu items like this. So, just as you cannot disable 'my account', 'my blog', etc., you cannot disable 'my quotes'.
#2
So how do I get rid of it? Hacking core?
#3
You can just edit the quotes.module file and remove that entry in the array() created in quotes_menu(). That is, simply delete or comment out lines 65-70:
<?php$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
);
?>
#4
Thank you very much for your help and for the module! :)
#5
here is a small patch that adds a setting option to disable or enable the "my quotes" menu link.
#6
Sorry, forgot to mark this for review.
#7
Thanks Sean!
#8
Updated version that also includes a setting for turning on/off the %name's quotes link at the bottom of nodes.
Seemed like these two were similar functions, so I put them in a fieldset and rolled them both into this one patch.
#9
Might these changes be incorporated into the module proper?
Thank you in advance for a promptly updated module!
#10
Does this patch work on release 5.x-1.1?
This is a great module and a much appreciated patch. Just out of curiosity, why wasn't the patch incorporated into the new release?
#11
+1 for this.
Can the author patch this?
#12
Just go into the module. Locate the the last line of that menu entry (line 70), which says "'type' => MENU_DYNAMIC_ITEM". Put "//" in the first two columns. Save the module.
Now your menu item is no longer "locked" and you can disable it.
#13
the patch is the wrong approach.
The menu item should be put in
if (!may_cache) {}and the menu type should beMENU_NORMAL_ITEM.It is actually a bug.
#14
Where does this stand? Is it a patch or a bug that will be fixed? I would like to be able to disable 'my quotes' without modifying the module if possible.
Thanks,
Maria
#15
I, too, would like to know what action to take to fix this problem. It's been three months since Maria's message received no reply.
#16
#12 is very easy even if you don't know php.
Based on the statistics (http://drupal.org/project/issues/statistics/quotes) for this module, I'd say it is close to being abandoned.
#17
The fix in #13 is done. I will look further at Sean's suggestions.
#18
Marking http://drupal.org/node/244555 as a duplicate of this.
#19
The full patch has been committed to both of the -dev versions.
There are new settings to disable the "My quotes" menu item and the "xxx's quotes" links.
Note: The 6.x version includes a link to the performance settings page where the menu can be forced to be rebuilt (the "clear cache" button) if you change the menu setting.
#20
Abandoned? Personally speaking I just started using it and am loving it.
#21
No, this module is no longer abandoned. I am actively maintaining it.
#22
Automatically closed -- issue fixed for two weeks with no activity.