Check $may_cache
Kiam@avpnet.org - June 7, 2008 - 14:34
| Project: | User Referral |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
As stated in the Drupal documentation about hook_menu():
Drupal will call this hook twice: once with $may_cache set to TRUE, and once with it set to FALSE. Therefore, each menu item should be registered when $may_cache is either TRUE or FALSE, not both times. Setting a menu item twice will result in unspecified behavior.
| Attachment | Size |
|---|---|
| referral_module.patch | 4.96 KB |

#1
Committed.
#2
Automatically closed -- issue fixed for two weeks with no activity.