I have a webform with some options and fields. When user submit the form i receive an email.

I want to hook right before(or after) drupal send the email and populate my Google Spreadsheet so i can review from my Google Drive account.(And send the email as normal)

I have make the connection with a custom php file. I don't know what hook i can use.

  • 3
    hook_webform_submission_presave? drupalcontrib.org/api/drupal/… Commented Mar 20, 2014 at 13:48
  • I will try it asap! Commented Mar 20, 2014 at 13:50
  • @Neograph734 Can you make it as an Answer so i can select it ? Thank you again!!!! Commented Mar 20, 2014 at 16:07
  • I've added it :) Commented Mar 20, 2014 at 16:15

1 Answer 1


The hook you need is hook_webform_submission_presave($node, $submission) that, according to the documentation allows to modify a Webform submission, prior to saving it in the database.

So all values should be available there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.