You are here

function webform_webform_insert in Webform 6.x

Same name and namespace in other branches
  1. 8.5 includes/webform.editor.inc \webform_webform_insert()

Implements hook_webform_insert().

See also

editor_entity_insert()

File

includes/webform.editor.inc, line 31
Webform module editor file upload hooks.

Code

function webform_webform_insert(WebformInterface $webform) {
  $uuids = _webform_get_config_entity_file_uuids($webform);
  _webform_record_file_usage($uuids, $webform
    ->getEntityTypeId(), $webform
    ->id());
}