Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
menu system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
3 Apr 2009 at 03:00 UTC
Updated:
9 May 2009 at 15:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
pwolanin commentedPer discussion w/ catch - if you have a variable name more complex than just __FUNCTION__, use a ':' to separate the suffix (this will avoid colliding with any other valid function name). e.g. :
Comment #2
JamesAn commentedI noticed menu_get_names() is never called or mentioned in the code anywhere. Is that function unused?
I also modified the condition of an if-statement in _menu_clear_page_cache() from
empty($cache_cleared)to$cache_cleared == 0as I think the equality comparison better indicates that $cache_cleared is a counting variable.Comment #3
JamesAn commentedAlways forgetting to flip the status.. -_-
Comment #4
pwolanin commentedmenu_get_names() is a API function provided by core, but indeed not used in core. It's actually quite different in function (though perhaps too similar in name) to menu_get_menus(). I don't think it should be removed, but perhaps named better. Likely there are other parts of the menu system where we shoudl provide more such APi functions to reduce the necessity for contrib modules going directly to the DB.
Comment #5
pwolanin commentedpatch still applies cleanly, works fine, all straight-forward conversions.
Comment #6
dries commentedCommitted to CVS HEAD. Thanks!