Hi guys,
I really need your help here, I'm sure I'm just missing something here. I've been googling and trying all day long, so this is kind of my last resort.
My problem is that when I put a form in a block which is displayed in the admin overlay, it submits several hundred times. Don't ask me why. It even happens with the example_form when it is in a block.
Here I am sharing the simplest code I could come up with to reproduce this error (a totally basic form in a block), just put it on a blank drupal install, and include the block in the dashboard. After submitting it (which takes some time) you'll find your watchdog entries filled with form submissions. This doesn't happen when you don't use the admin overlay, then it works properly.
The module: http://pastebin.com/YStYga9h
Please, if you have any ideas - I'd be glad to try them out.
Best regards,
Victor
Comments
Why are you adding a form in
Why are you adding a form in a block to an admin overlay. Generally blocks are not even displayed in the overlay.
Because I want to include it
Because I want to include it in the dashboard. Does that interfere with the process somehow? It doesn't seem to be a hack as it's explicitly mentioned that you can add your own blocks to it.