Correct hook_menu bacause it isn't nice.

pp - November 30, 2008 - 08:07
Project:Contact Forms
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

You create many menu item. I think you must only one menu item.

see the patch.

AttachmentSize
contact_forms.patch1.44 KB

#1

behindthepage - December 1, 2008 - 11:26

Thanks Palócz, I looked at this again and I don't need hook_menu at all!

Because I use arg(1) and arg(2) in hook_form_alter it all works via the standard contact menu item.

Silly me.
Regards
Geoff

#2

pp - December 1, 2008 - 14:52
Status:needs review» closed

You are right! I am so silly! ;)

I deleted the hook_menu. I moved this changes to my block patch. http://drupal.org/node/340737

pp

 
 

Drupal is a registered trademark of Dries Buytaert.