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
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.

AttachmentSize
referral_module.patch4.96 KB

#1

kbahey - June 7, 2008 - 16:12
Status:active» fixed

Committed.

#2

Anonymous (not verified) - June 21, 2008 - 16:12
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.