You are here

function webform_webform_submission_insert in Webform 7.4

Same name and namespace in other branches
  1. 7.3 webform.module \webform_webform_submission_insert()

Implements hook_webform_submission_insert().

File

./webform.module, line 1392
This module provides a simple way to create forms and questionnaires.

Code

function webform_webform_submission_insert($node, $submission) {
  if (isset($submission->file_usage)) {
    webform_component_include('file');
    webform_file_usage_adjust($submission);
    webform_file_rename($node, $submission);
  }
}