I'm basically wanting to manipulate user-submitted forms through the use of SproutForms. Basically, the user enters their form data, submits it, where it's recorded as a SproutForm entry. When that happens, I also want it to create an entry in a channel with the same data, so that I can freely use them in templates (showing users a list of their submissions).
All this would be simpler if SproutForms had some templating tags to output entries, but from looking through the plugin, I don't think thats possible.
Anyway, so an additional plugin could have something like this:
public function init() {
// Support Sprout Forms plugin
craft()->on('sproutForms.saveEntry', function(Event $event) {
$entry = $event->params['entry'];
craft()->entries->saveEntry($entry);
});
}
But that doesn't seem to work. Any ideas, or a better suggestion?