1 filter.module filter_node_revision_delete(Node $node)

Implements hook_node_revision_delete().

@todo Ideally this would be hook_entity_revision_delete(), but entities do not have full revision support at this point.

File

core/modules/filter/filter.module, line 1776
Framework for handling the filtering of content.

Code

function filter_node_revision_delete(Node $node) {
  $referenced_files_by_field = _filter_get_file_ids_by_field($node);
  foreach ($referenced_files_by_field as $field => $fids) {
    _filter_delete_file_usage($fids, $node, 1);
  }
}