I've been trying to figure out how to use Node Pay Forms and Donate together and ran into some weird problems. Since I was wanting to embed my donation form inside the node create form, when I was setting up the donation form under admin/build/donate/add, I didn't add a Menu Path. However this resulted in creating an item in the Navigation menu for my donation form that doesn't go anywhere.
To reproduce:
- Add a new donation form at admin/build/donate/add. Don't add a Menu path.
- A new link is added to the Navigation menu with the name of your donation form. But this link goes to the front page.
Either the link shouldn't be created in the menu at all or this field should be required.
Comments
Comment #1
Michael Phipps commented** This comment left blank intentionally ** [delete]
Comment #2
letapjar commentedthis issue is related to issue: 138700
Making menu_path required is not the ideal solution. If pay_node module is being used, there could potentially be thousands of donation forms on a site, in this case the module should not default to inserting every one of those forms into the navigation menu. As outlined in the other thread - the solution is to properly un-set the menu_path form element in hook_form_alter and then to ensure that donate module sets the 'type' property to MENU_CALLBACK.