You are here

function remote_stream_wrapper_file_delete in Remote Stream Wrapper 7

Implements hook_file_delete().

File

./remote_stream_wrapper.module, line 314
Provides a remote stream wrapper and file field integration.

Code

function remote_stream_wrapper_file_delete($file) {
  $scheme = file_uri_scheme($file->uri);
  if ($scheme && file_is_scheme_remote($scheme)) {
    remote_stream_wrapper_image_path_flush($file->uri);
  }
}