You are here

function webform_webform_delete in Webform 6.x

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

Implements hook_webform_delete().

See also

editor_entity_delete()

File

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

Code

function webform_webform_delete(WebformInterface $webform) {
  $uuids = _webform_get_config_entity_file_uuids($webform);
  _webform_delete_file_usage($uuids, $webform
    ->getEntityTypeId(), $webform
    ->id(), 0);
}