function image_file_move

Implements hook_file_move().

File

drupal/core/modules/image/image.module, line 315
Exposes global functionality for creating image styles.

Code

function image_file_move(File $file, File $source) {

  // Delete any image derivatives at the original image path.
  image_path_flush($source->uri);
}