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
Comment #1
lokisapocalypse commentedComment #2
quicksketchIt'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.
Comment #3
quicksketchAlso, 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.
Comment #4
quicksketch