On a previous installation of Drupal, I was using the following for additional processing:

$sid = _webform_save_submission($node, $form_values['submitted']);

However, in upgrading to 5.15, I now get the following error:

Call to undefined function _webform_save_submission()

What is the new function I should use?

Comments

lokisapocalypse’s picture

Priority: Normal » Critical
quicksketch’s picture

Category: bug » support
Priority: Critical » Normal

It's not a bug report because the name of the function changed, the leading underscore means a "private function" in Drupal conventions, so it's possible or even likely that this function would change between different versions because it's not a public API function. Check the functions "webform_submission_update" and "webform_submission_insert" in the webform_submissions.inc file.

quicksketch’s picture

Also, I just saw that you're using a 1.x version of Webform that is no longer supported. You'll need to update to the 2.x version to get further help.

quicksketch’s picture

Status: Active » Closed (fixed)