Closed (fixed)
Project:
Spam
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Apr 2010 at 19:55 UTC
Updated:
9 Jan 2011 at 04:10 UTC
Jump to comment: Most recent file
I'd try MENU_CALLBACK.
Untested, but I dont't want to forget it.
(php 5.3 strict error checking)
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | spam-6.x-1.x-1288095493.patch | 976 bytes | hswong3i |
| spam.module.diff | 693 bytes | keinstein |
Comments
Comment #1
keinstein commentedComment #2
hswong3i commentedTest with "drush up", no more error message nor notice with Drupal 6.19 + PHP 5.3.2. Patch reroll via spam-6.x-1.x-dev CVS. Should be RTBC?
Comment #3
jeremy commentedThanks, fix committed:
http://drupal.org/cvs?commit=468962
Comment #4
gnassar commentedI think this is fine, but just to note: changing it from MENU_LOCAL_CALLBACK to MENU_CALLBACK technically changes functionality. Since MENU_LOCAL_CALLBACK is undefined, this was most likely dropping back to the default MENU_NORMAL_ITEM.
I don't think it should make a difference off the top of my head considering how we use those items, but I thought I'd throw this in here in case we ran into something in the future.
Comment #5
AlexisWilke commentedSince the intend was to have MENU_CALLBACK, it makes sense to use that. Also these items are supposed to be hidden so marking them callbacks makes more sense than making them normal items (which the Admin menu, for instance, would then show you!)
Thank you.
Alexis
Comment #6
gnassar commentedRight -- that's why I left it as "fixed." But we're guessing at intent, of course, so just wanted to note it so we'd keep an eye out.
As a note -- they don't actually show up as normal items, even when marked as NORMAL_ITEM (like they were before, by accident; I'm sure you noticed they didn't actually show). Since they don't have a parent menu item, they would have no place to appear.
Comment #7
AlexisWilke commentedYes. I checked for a parent and couldn't locate one so thought that the fix was good. 8-)