I need to create custom blocks for every new webform. When User will create a webform, module should create a custom webform block.E.G. 'webform-1' becomes 'webform-1-block'. The resulting block must be of type 'webform_block' and reference the newly created webform.
How should I achieve this functionality? Any reference?
Thanks in advance.
webform_block
and you have to provide thewebform_id
of the newly created webform in settings.