I wanted to add a webform inside a block. I tried both Node Blocks and Form Block, but neither did quite what I was looking for. Instead, I borrowed from the Node Blocks module and came up with this patch. I haven't tested it extensively, but it seems to be working for what I needed.

If it looks like something you'd be interested in adding, I'd be glad to write some tests for it, if necessary. I haven't done many patches and this is the first time I've used Netbeans to generate one, so please let me know if there is anything I should be doing differently.

On a more general note, thanks for all the work on the module. I've used it with great success on a number of projects.

CommentFileSizeAuthor
webform-module-blocks.patch2.17 KBmatt v.

Comments

cdale’s picture

Status: Needs review » Needs work

I have some sites that have thousands of webforms. This patch would create a lot of clutter on the blocks page. I think it's a good idea, but perhaps adding an option when creating the webform node to add a block or not might be a better solution than adding a block for every webform on a site?

KrisBulman’s picture

How does this handle form submissions? does it display the errors and user definied messages in the same node the block is residing in?

mattmm’s picture

just for feedback purposes - we've created a block view (via views) to embed webform in a block.

quicksketch’s picture

Status: Needs work » Closed (duplicate)