Currently, there is this code in hook_menu():

  $items['ahah_example/simplest_ahah/callback'] = array(
    'page callback' => 'ahah_example_simplest_callback',
    'access callback' => TRUE,
    'file' => 'simplest_ahah.inc',
   );

Silly menu item

Because type is not specified, this ends up showing as a blank entry in the navigation menu on the menu administration page.

This should be changed to type => MENU_CALLBACK.

Comments

webchick’s picture

Assigned: Unassigned » webchick
webchick’s picture

Status: Active » Needs review
StatusFileSize
new723 bytes

Here's a fix.

rfay’s picture

Status: Needs review » Needs work
+    'tyop' => MENU_CALLBACK,

Isn't this a big typo?

webchick’s picture

+++ ahah_example.module	16 Jul 2010 20:05:01 -0000
@@ -28,7 +28,8 @@ function ahah_example_menu() {
+    'tyop' => MENU_CALLBACK,

Hey, I think you have a typo here.. that should actually "type".

Powered by Dreditor.

webchick’s picture

Status: Needs work » Needs review
StatusFileSize
new845 bytes

Ok, I felt guilty... here's a re-roll of the patch.

rfay’s picture

Status: Needs review » Reviewed & tested by the community

Wow, thanks, that looks great. I'll commit when the bot comes back green.

THANKS!
-Randy

rfay’s picture

Status: Reviewed & tested by the community » Closed (duplicate)