I want to submit the webform data I am creating to another database which is set up in my settings.phd db array.

Previously, I whave written a module where I use db_set_active('other_db') then submit the form, then switch back to db_set_active('default').

How do I do this with the webform module?

It looks like a great module and looks like it could save me alot of time, but I need to submit to a DB other than the drupal default db.

Thanks

Comments

Anonymous’s picture

Curious - has no one done this?

quicksketch’s picture

Status: Active » Closed (fixed)

I'd suggest you use Database table prefixes such as "db2.webform_submissions" in your settings.php file for all the webform tables (webform_submissions, webform_submitted_data, etc.) Changing the database just on form submission would not be adequate, because all the listings and results would also need to pull from those tables. I'm closing this issue directly considering it's age.