I am wondering if there is any solution to store webforms in code. So that you can easily duplicate them on other sites and bundle them with your own modules. I am looking into something similair as the views API.
If it is not available how many people are interested in such functionality? I might develop a module which could handle storing of webforms in Code. And do you have any concerns in creating such a module?
webform_share_node_insert()are the money functions). Can't say I approve of the use of
eval(), but you could just as easily convert that to use a JSON object/serialized string instead. The only (small) difficulty you need to overcome is how/when your webform is applied to a new node, a node of course being required to attach the webform to.